docs: Readd bind -k to the docs

Fixes #11329

(cherry picked from commit d88f5ddbaf)
This commit is contained in:
Fabian Boehm
2025-03-27 15:56:09 +01:00
committed by Johannes Altmanninger
parent 542793a534
commit 3fc245d829

View File

@@ -99,6 +99,12 @@ The following options are available:
**-s** or **--silent**
Silences some of the error messages, including for unknown key names and unbound sequences.
**-k KEY_NAME** or **--key KEY_NAME**
This looks up KEY_NAME in terminfo and binds that sequence instead of a key that fish would decode.
To view a list of the terminfo keys fish knows about, use ``bind --key-names`` or ``bind -K``.
This is deprecated and provided for compatibility with older fish versions. You should bind the keys directly.
Instead of ``bind -k sright`` use ``bind shift-right``, instead of ``bind -k nul`` use ``bind ctrl-space`` and so on.
**-h** or **--help**
Displays help about using this command.