Bug#316541: the swap marning may raise the other window
Eduard Bloch
Eduard Bloch <blade@debian.org>, 316541@bugs.debian.org
Fri, 01 Jul 2005 18:29:51 +0200
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.
Regards,
Eduard.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages vim-gtk depends on:
ii libatk1.0-0 1.10.1-2 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libglib2.0-0 2.6.5-1 The GLib library of C routines
ii libgpmg1 1.19.6-20 General Purpose Mouse - shared lib
ii libgtk2.0-0 2.6.8-1 The GTK+ graphical user interface
ii libice6 4.3.0.dfsg.1-14 Inter-Client Exchange library
ii libncurses5 5.4-8 Shared libraries for terminal hand
ii libpango1.0-0 1.8.1-1 Layout and rendering of internatio
hi libsm6 4.3.0.dfsg.1-14 X Window System Session Management
ii libx11-6 4.3.0.dfsg.1-14 X Window System protocol client li
hi libxt6 4.3.0.dfsg.1-14 X Toolkit Intrinsics
ii vim 1:6.3-078+1 Vi IMproved - enhanced vi editor
ii xlibs 4.3.0.dfsg.1-14 X Keyboard Extension (XKB) configu
vim-gtk recommends no packages.
-- no debconf information