summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/fi/fish-mk-maps/fish_test.sh
blob: 3c6077b50f5248dfff3b4f5b03a255a1c5b8c1d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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