From ba5a22e2ce3b84eda1f3e03f8089643971d0f742 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 12 Apr 2016 20:41:35 +0200 Subject: Deprecate fish_vi_mode This was never mentioned in the documentation as the way to switch to vi-mode, and now does nothing of value anymore. --- doc_src/fish_vi_mode.txt | 2 ++ share/functions/fish_vi_mode.fish | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc_src/fish_vi_mode.txt b/doc_src/fish_vi_mode.txt index 3676dedd..d39697c8 100644 --- a/doc_src/fish_vi_mode.txt +++ b/doc_src/fish_vi_mode.txt @@ -7,4 +7,6 @@ fish_vi_mode \subsection fish_vi_mode-description Description +This function is deprecated. Please call `fish_vi_key_bindings directly` + `fish_vi_mode` enters a vi-like command editing mode. To always start in vi mode, add `fish_vi_mode` to your `config.fish` file. diff --git a/share/functions/fish_vi_mode.fish b/share/functions/fish_vi_mode.fish index 8c89a53e..29ddeb6c 100644 --- a/share/functions/fish_vi_mode.fish +++ b/share/functions/fish_vi_mode.fish @@ -1,4 +1,5 @@ function fish_vi_mode - # Turn on vi keybindings - set -g fish_key_bindings fish_vi_key_bindings + echo "This function is deprecated. Please call fish_vi_key_bindings directly" >&2 + # Turn on vi keybindings + set -g fish_key_bindings fish_vi_key_bindings end -- cgit v1.2.3