Bind shift-tab to complete-backward in fish
Posted
by
Sebastian
on Super User
See other posts from Super User
or by Sebastian
Published on 2013-11-05T15:22:47Z
Indexed on
2013/11/05
15:58 UTC
Read the original article
Hit count: 370
I found myself using the auto-complete functionality of the fish-shell, where pressing tab twice or more cycles through the suggestions. But then I accidentaly pressed tab once to many, and I wanted to go back to the previous suggestion, so I pressed shift-tab, which only appended [z
to the command.
For example, when I type cd D<tab><tab>
:
~> cd Desktop/
I press <tab>
, result:
~> cd Documents/
Now when I press <shift+tab>
, the prompt changes to ~> cd Documents/[Z
instead of returning to the desired:
~> cd Desktop/
How do I do this (preferably using the fish_user_key_bindings.fish
file)? The documentation only provides the special function complete
.
© Super User or respective owner