fish: change mode & setsMode bind options to allow arbitrary strings additional to default enum values

This commit is contained in:
RockWolf 2026-03-15 11:27:25 +01:00 committed by Austin Horstman
parent 51895e1813
commit 54db7915d0
2 changed files with 22 additions and 10 deletions

View file

@ -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"
'';
};
};