From c1912e5624f2e797d364ad914c850a9074992393 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 23 Sep 2020 18:15:53 +0200 Subject: [PATCH] docs: Change hybrid_binding function name Just "hybrid_bindings" won't trigger the mode prompt. (yes, this is cheesy) [ci skip] --- doc_src/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_src/index.rst b/doc_src/index.rst index 317f57190..cadb0aa28 100644 --- a/doc_src/index.rst +++ b/doc_src/index.rst @@ -1454,13 +1454,13 @@ The fish editor features copy and paste, a `searchable history <#history-search> Similar to bash, fish has Emacs and Vi editing modes. The default editing mode is Emacs. You can switch to Vi mode with ``fish_vi_key_bindings`` and switch back with ``fish_default_key_bindings``. You can also make your own key bindings by creating a function and setting $fish_key_bindings to its name. For example:: - function hybrid_bindings --description "Vi-style bindings that inherit emacs-style bindings in all modes" + function fish_hybrid_key_bindings --description "Vi-style bindings that inherit emacs-style bindings in all modes" for mode in default insert visual fish_default_key_bindings -M $mode end fish_vi_key_bindings --no-erase end - set -g fish_key_bindings hybrid_bindings + set -g fish_key_bindings fish_hybrid_key_bindings .. _shared-binds: