fish: change mode & setsMode bind options to allow arbitrary strings additional to default enum values
This commit is contained in:
parent
51895e1813
commit
54db7915d0
2 changed files with 22 additions and 10 deletions
|
|
@ -14,6 +14,12 @@
|
|||
command = "exit";
|
||||
};
|
||||
|
||||
# Allow arbitrary modes
|
||||
"f" = {
|
||||
mode = "something-non-default";
|
||||
command = "exit";
|
||||
};
|
||||
|
||||
"ctrl-c" = {
|
||||
mode = "insert";
|
||||
command = [
|
||||
|
|
@ -57,6 +63,8 @@
|
|||
"bind --preset alt-s 'fish_commandline_prepend sudo"
|
||||
assertFileContains home-files/.config/fish/functions/fish_user_key_bindings.fish \
|
||||
"bind --mode visual ctrl-d exit"
|
||||
assertFileContains home-files/.config/fish/functions/fish_user_key_bindings.fish \
|
||||
"bind --mode something-non-default f exit"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue