diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-02 14:06:45 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-02 14:06:45 +0100 |
| commit | ef08201a906a69ae25a5de0811d3840ae5cc970e (patch) | |
| tree | 238d85022b4eccc759618b0ba9e4b949d5dfe309 /pkgs/by-name/fi/fish-mk-maps/fish_test.sh | |
| parent | modules/fish: Switch to keybindings defined as nix attribute set (diff) | |
| download | nixos-config-ef08201a906a69ae25a5de0811d3840ae5cc970e.zip | |
pkgs/fish-mk-maps: Commit the program used to convert the `binds` to nix attrs
Diffstat (limited to '')
| -rwxr-xr-x | pkgs/by-name/fi/fish-mk-maps/fish_test.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/by-name/fi/fish-mk-maps/fish_test.sh b/pkgs/by-name/fi/fish-mk-maps/fish_test.sh new file mode 100755 index 00000000..3c6077b5 --- /dev/null +++ b/pkgs/by-name/fi/fish-mk-maps/fish_test.sh @@ -0,0 +1,31 @@ +#! /usr/bin/env sh + +set -e + +cargo build +./target/debug/bind-server > ./default.nix & +sleep 1 + +# bind --preset y,i backward-jump-till and repeat-jump-reverse and begin-selection repeat-jump fish_vi_yank_selection end-selection +# bind --preset y,a backward-jump and repeat-jump-reverse and begin-selection repeat-jump fish_vi_yank_selection end-selection +# bind --preset d,i backward-jump-till and repeat-jump-reverse and begin-selection repeat-jump kill-selection end-selection +# bind --preset d,a backward-jump and repeat-jump-reverse and begin-selection repeat-jump kill-selection end-selection +# bind --preset d 'fish_vi_start_operator delete' +# bind --preset c 'fish_vi_start_operator change' +# bind --preset y 'fish_vi_start_operator yank' +# bind --preset -m insert c,i backward-jump-till and repeat-jump-reverse and begin-selection repeat-jump kill-selection end-selection repaint-mode +# bind --preset -m insert c,a backward-jump and repeat-jump-reverse and begin-selection repeat-jump kill-selection end-selection repaint-mode + +# bind --preset -M insert a,b,c,a yank +# bind --preset -M insert a,b,c,b yank +# bind --preset -M insert a,b,c,c yank +bind --preset a,b,y,y fish_clipboard_copy +bind --preset a,b,Y fish_clipboard_copy +bind --preset a,c,y,y fish_clipboard_copy +bind --preset a,c,Y fish_clipboard_copy + +bind-end + +wait +cat ./default.nix +nix eval -f default.nix |
