mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 19:40:24 +10:00
Minor edits.
This commit is contained in:
@@ -570,8 +570,8 @@ key_bindings:
|
|||||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||||
- { key: Key0, mods: Control, action: ResetFontSize }
|
- { key: Key0, mods: Control, action: ResetFontSize }
|
||||||
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||||
- { key: Add, mods: Control, action: IncreaseFontSize }
|
- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
|
||||||
- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
|
||||||
- { key: Minus, mods: Control, action: DecreaseFontSize }
|
- { key: Minus, mods: Control, action: DecreaseFontSize }
|
||||||
|
|
||||||
- { key: Paste, action: Paste }
|
- { key: Paste, action: Paste }
|
||||||
|
|||||||
@@ -181,8 +181,6 @@ function commits
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Functions needed for !! and !$
|
# Functions needed for !! and !$
|
||||||
# Will only work in default (emacs) mode.
|
|
||||||
# Will NOT work in vi mode.
|
|
||||||
function __history_previous_command
|
function __history_previous_command
|
||||||
switch (commandline -t)
|
switch (commandline -t)
|
||||||
case "!"
|
case "!"
|
||||||
@@ -202,8 +200,13 @@ function __history_previous_command_arguments
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
# The bindings for !! and !$
|
# The bindings for !! and !$
|
||||||
|
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
|
||||||
bind '$' __history_previous_command_arguments
|
bind '$' __history_previous_command_arguments
|
||||||
|
end
|
||||||
|
|
||||||
# Function for creating a backup file
|
# Function for creating a backup file
|
||||||
# ex: backup file.txt
|
# ex: backup file.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user