docs: Explain bind --mode in custom bindings

This commit is contained in:
Fabian Boehm 2023-05-18 09:40:03 +02:00
parent 67d1d80f94
commit 0c900f74d0

View File

@ -552,6 +552,10 @@ If you change your mind on a binding and want to go back to fish's default, you
Fish remembers its preset bindings and so it will take effect again. This saves you from having to remember what it was before and add it again yourself.
If you use :ref:`vi bindings <vi-mode>`, note that ``bind`` will by default bind keys in :ref:`command mode <vi-mode-command>`. To bind something in :ref:`insert mode <vi-mode-insert>`::
bind --mode insert \cc 'commandline -r ""'
Key sequences
"""""""""""""