bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(wishlist) bash should do fancy delete "anti-completion"


From: Peter Eckersley
Subject: (wishlist) bash should do fancy delete "anti-completion"
Date: Sun, 11 May 2003 21:13:23 +1000

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H   -I.  
-I/home/doko/packages/bash/bash-2.05a 
-I/home/doko/packages/bash/bash-2.05a/include 
-I/home/doko/packages/bash/bash-2.05a/lib -g -O2
uname output: Linux luminance.reworld.org 2.4.20 #1 Fri Mar 28 19:19:27 EST 
2003 i686 unknown
Machine Type: i386-pc-linux-gnu

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
  Wishlist -- bash should do have the ability to do delete
  "anti-completion" and remove all non-ambiguous characters behind the
  cursor.  

Repeat-By:
        Suppose I have two files in a directory:

  /some/really/long/dir/not-so-long1-filename
  /some/really/long/dir/not-so-long2-filename

  if my last command was:

  $EDITOR /some/really/long/dir/not-so-long1-filename,

  and I use a history command to get it back again, but then start
  backspacing characters from the filename, what I almost always want is to
  reverse-complete to the first ambiguous filename

  $EDITOR /some/really/long/dir/not-so-long1-filename
  <backspace command>
  $EDITOR /some/really/long/dir/not-so-long
  <backspace command>
  $EDITOR /some/really/long/dir
  
Fix:
        Implement reverse-completion of commands; map this to a special 
keystroke
  by default.  Replacing backspace with this behaviour should be an option,
  although it might be a little hair-raising at first.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]