From 2b7f6e4b0cd7f36f626c8a17524bb5c8c09b4641 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 14 Jul 2021 16:49:22 +0200 Subject: [PATCH] docs: Put a note on which binding function to call in each section Fixes #8084. --- doc_src/interactive.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc_src/interactive.rst b/doc_src/interactive.rst index c3e52baeb..79fe2e891 100644 --- a/doc_src/interactive.rst +++ b/doc_src/interactive.rst @@ -313,6 +313,8 @@ Some bindings are common across Emacs and Vi mode, because they aren't text edit Emacs mode commands ------------------- +To enable emacs mode, use ``fish_default_key_bindings``. This is also the default. + - :kbd:`Home` or :kbd:`Control`\ +\ :kbd:`A` moves the cursor to the beginning of the line. - :kbd:`End` or :kbd:`Control`\ +\ :kbd:`E` moves to the end of line. If the cursor is already at the end of the line, and an autosuggestion is available, :kbd:`End` or :kbd:`Control`\ +\ :kbd:`E` accepts the autosuggestion. @@ -348,6 +350,8 @@ Vi mode commands Vi mode allows for the use of Vi-like commands at the prompt. Initially, :ref:`insert mode ` is active. :kbd:`Escape` enters :ref:`command mode `. The commands available in command, insert and visual mode are described below. Vi mode shares :ref:`some bindings ` with :ref:`Emacs mode `. +To enable vi mode, use ``fish_vi_key_bindings``. + It is also possible to add all emacs-mode bindings to vi-mode by using something like::