Bug#316541: the swap marning may raise the other window

Bram Moolenaar Bram@moolenaar.net
Sat, 02 Jul 2005 13:15:35 +0200


Stefano -

> Hi Bram, please find below a feature request from a debian vim user.
> 
> Thanks in advance,
> Cheers.
> 
> On Fri, Jul 01, 2005 at 06:29:51PM +0200, Eduard Bloch wrote:
> > Package: vim-gtk
> > Version: 1:6.3-078+1
> > Severity: wishlist
> > Tags: upstream
> > 
> > Hello,
> > 
> > maybe I am overlooking an important feature, but then please tell me
> > where.
> > 
> > What I did never like about vim (and especially GUI versions) is that
> > stupid "the swapfile exists, ...". It is missing an important feature:
> > since the file is most often opened in a hidden/minimized gvim on the
> > same host, the other instance may be notified and then raise itself
> > (using the WMFAGS).  IMHO this should be feasible since the current
> > versions provide some client/server functionality.
> > 
> > I imagine a config options which sets the "conflict resolution" mode for
> > detected swap-files, having following modes (let's call it confres):
> > 
> > confres=0: like the current method
> > confres=1 (imo the better default...): in addition to the swapfile check
> > and its owner, the owner process is queried for live signs and whether
> > it's willing to raise the window. Then the "ATTENTION" dialog window
> > gets a new button (which is selected by default) called "Notify the
> > other editor" or "Raise the other editor" or maybe just "Notify editor"
> > or "Raise editor".
> > confres=2: like 0, "edit anyway" selected by default
> > confres=3: like 0, "recover" selected by default
> > 
> > for 1,2,3 maybe an additional mode to do that action immediately, not
> > waiting for user to press space/enter.

Interesting idea.  Unfortunately it's not so easy to implement.  I'll
put it in the todo list, but don't expect it soon (unless someone makes
a patch for it).

- Bram

-- 
hundred-and-one symptoms of being an internet addict:
211. Your husband leaves you...taking the computer with him and you
     call him crying, and beg him to bring the computer back.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///