From b7b175371693d43f20181e1eefd89b2c53650e92 Mon Sep 17 00:00:00 2001 From: Anton Bilous Date: Thu, 24 Apr 2025 16:26:45 +0300 Subject: [PATCH] Mention replace mode in fish_mode_prompt docs --- doc_src/cmds/fish_mode_prompt.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc_src/cmds/fish_mode_prompt.rst b/doc_src/cmds/fish_mode_prompt.rst index f3feea7fd..4af5a3401 100644 --- a/doc_src/cmds/fish_mode_prompt.rst +++ b/doc_src/cmds/fish_mode_prompt.rst @@ -22,7 +22,7 @@ Description The ``fish_mode_prompt`` function outputs the mode indicator for use in vi mode. -The default ``fish_mode_prompt`` function will output indicators about the current vi editor mode displayed to the left of the regular prompt. Define your own function to customize the appearance of the mode indicator. The ``$fish_bind_mode variable`` can be used to determine the current mode. It will be one of ``default``, ``insert``, ``replace_one``, or ``visual``. +The default ``fish_mode_prompt`` function will output indicators about the current vi editor mode displayed to the left of the regular prompt. Define your own function to customize the appearance of the mode indicator. The ``$fish_bind_mode variable`` can be used to determine the current mode. It will be one of ``default``, ``insert``, ``replace_one``, ``replace``, or ``visual``. You can also define an empty ``fish_mode_prompt`` function to remove the vi mode indicators:: @@ -51,6 +51,9 @@ Example case replace_one set_color --bold green echo 'R' + case replace + set_color --bold bryellow + echo 'R' case visual set_color --bold brmagenta echo 'V'