: : BTW Is there any other shell (bash? zsh?) that allows the user
: : to choose a different key for filename completion ?
: `bash' lets you do just this, because it's using the GNU readline
: library. You can change all the key-bindings and store them in your
: ~/.inputrc file:
: ESC: complete
Ermm... not quite, because you can't actually use ESC in that way in bash
either. There is a good reason for this.
The choice of ESC as a user key on its own, is in general a BAD IDEA, it
causes all sort of problems. As anyone who's ever accidentally pressed
the arrow keys in a non editting mode will tell you ESC is the character
that marks the start of an escape sequence. Thus when you get an ESC
character how do you know if you have the start of an escape sequence or
just a press of escape. Standard csh "gets round" this by not using any of
the other escape sequences, while vi sets a timeout, which can go wrong in
certain circumstances (ever tried vi on a random lag link ??).
Even if your shell/application does allow ESC as a binding key its probably
best to avoid using. With tcsh/bash/zsh stick with TAB (I wish ksh would
use tab as well)
BTW Disreguard the above for true X applications, X's handling is different.