From 670a42afed2d035a71e2f8e050422636a6a1b481 Mon Sep 17 00:00:00 2001 From: Hec_ Date: Tue, 3 Nov 2020 23:03:23 +0000 Subject: [PATCH 1/2] Make bang-bang compatible with vi mode --- .config/fish/config.fish | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index c5eab11..bf7c809 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -182,8 +182,6 @@ function commits end # Functions needed for !! and !$ -# Will only work in default (emacs) mode. -# Will NOT work in vi mode. function __history_previous_command switch (commandline -t) case "!" @@ -203,8 +201,13 @@ function __history_previous_command_arguments end end # The bindings for !! and !$ -bind ! __history_previous_command -bind '$' __history_previous_command_arguments +if [ $fish_key_bindings = fish_vi_key_bindings ]; + bind -Minsert ! __history_previous_command + bind -Minsert '$' __history_previous_command_arguments +else + bind ! __history_previous_command + bind '$' __history_previous_command_arguments +end # Function for creating a backup file # ex: backup file.txt From 5955f348d4f0bdb88d4306ce0476016cc27bd451 Mon Sep 17 00:00:00 2001 From: acetaku Date: Sat, 7 Nov 2020 18:19:44 +0000 Subject: [PATCH 2/2] Fixing error in alacritty.yml --- .config/alacritty/alacritty.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index e91f5ef..a7a1ed9 100755 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -570,8 +570,8 @@ key_bindings: - { key: Insert, mods: Shift, action: PasteSelection } - { key: Key0, mods: Control, action: ResetFontSize } - { key: Equals, mods: Control, action: IncreaseFontSize } - - { key: Add, mods: Control, action: IncreaseFontSize } - - { key: Subtract, mods: Control, action: DecreaseFontSize } + - { key: NumpadAdd, mods: Control, action: IncreaseFontSize } + - { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } - { key: Minus, mods: Control, action: DecreaseFontSize } - { key: Paste, action: Paste }