From f37d55ade51849c4e4853da04873c6acf2e2b535 Mon Sep 17 00:00:00 2001 From: Joseph Tannhuber Date: Sun, 3 Aug 2014 22:38:46 +0200 Subject: [PATCH] made toggle functions available in VISUAL mode --- themes/budspencer/README.md | 4 ++-- themes/budspencer/fish_right_prompt.fish | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/budspencer/README.md b/themes/budspencer/README.md index 41c67d9..c7d8d09 100644 --- a/themes/budspencer/README.md +++ b/themes/budspencer/README.md @@ -19,7 +19,7 @@ Translation of zsh's prezto [budspencer theme][budspencer] - Last command's duration time - Git status - * style can be toggled in NORMAL mode with `,,` between + * style can be toggled in NORMAL and in VISUAL mode with `,,` between - `symbols` (shows git status symbols, see below) - `counts` (shows amount of files that are affected) * symbols: @@ -33,7 +33,7 @@ Translation of zsh's prezto [budspencer theme][budspencer] - ●: there are untracked files - ✭: there are stashed commits - Present working directory - * style can be toggled in NORMAL mode with space bar + * style can be toggled in NORMAL and in VISUAL mode with space bar * styles implemented: - `short` (show truncated path) - `long` (show full path) diff --git a/themes/budspencer/fish_right_prompt.fish b/themes/budspencer/fish_right_prompt.fish index 839e301..9d50554 100644 --- a/themes/budspencer/fish_right_prompt.fish +++ b/themes/budspencer/fish_right_prompt.fish @@ -35,6 +35,7 @@ function fish_git_toggle_cm --description "Toggles style of git segment, press , commandline -f repaint end bind -M default ',,' fish_git_toggle_cm +bind -M visual ',,' fish_git_toggle_cm if set -q -x $PWDSTYLE set -x PWDSTYLE short long none @@ -50,6 +51,7 @@ function fish_pwd_toggle_cm --description "Toggles style of pwd segment, press s end end bind -M default ' ' fish_pwd_toggle_cm +bind -M visual ' ' fish_pwd_toggle_cm function fish_cmd_duration_cm -d "Displays the elapsed time of last command" if test (count $CMD_DURATION) -gt 0