From d88f5ddbaf5d8c60da2da7a5f7d4a316eb6240c3 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Thu, 27 Mar 2025 15:56:09 +0100 Subject: [PATCH] docs: Readd bind -k to the docs Fixes #11329 --- doc_src/cmds/bind.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc_src/cmds/bind.rst b/doc_src/cmds/bind.rst index 16f806d2d..41716d22d 100644 --- a/doc_src/cmds/bind.rst +++ b/doc_src/cmds/bind.rst @@ -100,6 +100,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.