I can't seem to find any information on how to navigate tab completion or how to bind keys in tab completion in fish shell.

This is what I am trying to achieve but in fish shell rather than zsh. Fish-like argument completion search in ZSH

Please help...

  • You'll probably get more eyes if you ask on stack overflow. Feb 9, 2021 at 17:00
  • Are you sure you linked to the question you meant to? Feb 10, 2021 at 0:51

1 Answer 1


The tab completion pager uses the same keys as the rest of the command-line editor, so to bind h to move in the pager (and stay as inserting h when writing a command) use:

bind h 'if commandline --paging-mode; commandline --function backward-char; else; commandline --insert h; end'

Similar lines can be added for j, k, and l.

Note, however, that this breaks while the pager is in search mode (using Ctrl+S) as there is no way of detecting whether search mode is active (that's probably a missing feature).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.