Skip to content

Commit

Permalink
completions/bind: complete ctrl/alt modifier abbreviations
Browse files Browse the repository at this point in the history
  • Loading branch information
krobelus committed May 22, 2024
1 parent de7f39d commit 2f84f76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/completions/bind.fish
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ function __fish_bind_complete
set -l token (commandline -ct)
if test (count $argv) = 0 && set -l prefix (string match -r -- '(.*,)?(ctrl-|alt-|shift-)*' $token)
printf '%sctrl-\tCtrl modifier…\n' $prefix
printf '%sc-\tCtrl modifier…\n' $prefix
printf '%salt-\tAlt modifier…\n' $prefix
printf '%sa-\tAlt modifier…\n' $prefix
printf '%sshift-\tShift modifier…\n' $prefix
set -l key_names minus comma backspace delete escape \
enter up down left right pageup pagedown home end insert tab \
Expand Down

0 comments on commit 2f84f76

Please sign in to comment.