My fish configuration contains following bindings:
bind \ci nextd-or-forward-word
bind \co prevd-or-backward-word
bind \t complete
When I comment out complete
then directory navigation to works as expected . However turning it on causes rebind of \ci
as Tab
, so nextd-or-forward-word
does not work any more. I know that according to Control characters it is all right and also I can confirm that by issuing:
>> fish_key_reader
Press a key:
hex: 9 char: \cI (or \t)
bind \t 'do something'
Howevery I would like to distinguish \cI
and Tab
. Is there a way to achieve that in Fish ?
Tab
orCtrl+i
: ASCII horizontal tab. This is normal and standard. To make Fish distinguish them you need to tell your terminal (terminal emulator) to send another sequence upon one of the keystrokes. Note this won't make Fish distinguish\cI
from\t
because these are different representations of the same byte. Fish will probably be able to distinguish\t
from another sequence you choose though.