AutoYADM commit: 2025-04-03 15:55:17
This commit is contained in:
parent
fb84d507f0
commit
5c3bac1fa9
8 changed files with 2 additions and 208 deletions
|
@ -1,10 +0,0 @@
|
|||
function __abbr_tips_bind_newline
|
||||
if test $__abbr_tips_used != 1
|
||||
if abbr -q -- (string trim -- (commandline))
|
||||
set -g __abbr_tips_used 1
|
||||
else
|
||||
set -g __abbr_tips_used 0
|
||||
end
|
||||
end
|
||||
commandline -f execute
|
||||
end
|
|
@ -1,11 +0,0 @@
|
|||
function __abbr_tips_bind_space
|
||||
commandline -i " "
|
||||
if test $__abbr_tips_used != 1
|
||||
if abbr -q -- (string trim -- (commandline))
|
||||
set -g __abbr_tips_used 1
|
||||
else
|
||||
set -g __abbr_tips_used 0
|
||||
end
|
||||
end
|
||||
commandline -f expand-abbr
|
||||
end
|
|
@ -1,16 +0,0 @@
|
|||
function __abbr_tips_clean -d "Clean plugin variables and functions"
|
||||
bind --erase \n
|
||||
bind --erase \r
|
||||
bind --erase " "
|
||||
set --erase __abbr_tips_used
|
||||
set --erase __abbr_tips_run_once
|
||||
set --erase __ABBR_TIPS_VALUES
|
||||
set --erase __ABBR_TIPS_KEYS
|
||||
set --erase ABBR_TIPS_PROMPT
|
||||
set --erase ABBR_TIPS_AUTO_UPDATE
|
||||
set --erase ABBR_TIPS_ALIAS_WHITELIST
|
||||
set --erase ABBR_TIPS_REGEXES
|
||||
functions --erase __abbr_tips_bind_newline
|
||||
functions --erase __abbr_tips_bind_space
|
||||
functions --erase __abbr_tips
|
||||
end
|
|
@ -1,24 +0,0 @@
|
|||
function __abbr_tips_init -d "Initialize abbreviations variables for fish-abbr-tips"
|
||||
set -e __ABBR_TIPS_KEYS
|
||||
set -e __ABBR_TIPS_VALUES
|
||||
set -Ux __ABBR_TIPS_KEYS
|
||||
set -Ux __ABBR_TIPS_VALUES
|
||||
|
||||
set -l i 1
|
||||
set -l abb (string replace -r '.*-- ' '' -- (abbr -s))
|
||||
while test $i -le (count $abb)
|
||||
set -l current_abb (string split -m1 -- ' ' "$abb[$i]")
|
||||
set -a __ABBR_TIPS_KEYS "$current_abb[1]"
|
||||
set -a __ABBR_TIPS_VALUES (string trim -c '\'' -- "$current_abb[2]")
|
||||
set i (math $i + 1)
|
||||
end
|
||||
|
||||
set -l i 1
|
||||
set -l abb (string replace -r '.*-- ' '' -- (alias -s))
|
||||
while test $i -le (count $abb)
|
||||
set -l current_abb (string split -m2 -- ' ' "$abb[$i]")
|
||||
set -a __ABBR_TIPS_KEYS "a__$current_abb[2]"
|
||||
set -a __ABBR_TIPS_VALUES (string trim -c '\'' -- "$current_abb[3]")
|
||||
set i (math $i + 1)
|
||||
end
|
||||
end
|
|
@ -54,5 +54,6 @@ function fish_user_key_bindings
|
|||
bind -M visual -m default s end-selection repaint-mode
|
||||
bind -M visual -m insert h end-selection repaint-mode
|
||||
bind -M visual -m insert H end-selection beginning-of-line repaint-mode
|
||||
bind -M insert ctrl-z fg repaint-mode
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue