mirror of
https://github.com/CrispyConductor/tmux-copy-toolkit.git
synced 2026-09-10 04:06:14 -04:00
31 lines
1.5 KiB
Bash
Executable file
31 lines
1.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
# copytk prefix: easymotion action bindings
|
|
tmux bind-key -T copytk s run-shell -b "python3 $CURRENT_DIR/copytk.py easymotion-search --search-nkeys 1"
|
|
tmux bind-key -T copytk S run-shell -b "python3 $CURRENT_DIR/copytk.py easymotion-search --search-nkeys 2"
|
|
tmux bind-key -T copytk k run-shell -b "python3 $CURRENT_DIR/copytk.py easymotion-lines --search-direction backward"
|
|
tmux bind-key -T copytk j run-shell -b "python3 $CURRENT_DIR/copytk.py easymotion-lines --search-direction forward"
|
|
tmux bind-key -T copytk n run-shell -b "python3 $CURRENT_DIR/copytk.py easymotion-lines"
|
|
|
|
# copy mode: easymotion action bindings
|
|
tmux bind-key -T copy-mode-vi s run-shell -b "python3 $CURRENT_DIR/copytk.py easymotion-search --search-nkeys 1"
|
|
tmux bind-key -T copy-mode s run-shell -b "python3 $CURRENT_DIR/copytk.py easymotion-search --search-nkeys 1"
|
|
|
|
# copytk prefix: easycopy action bindings
|
|
tmux bind-key -T copytk y run-shell -b "python3 $CURRENT_DIR/copytk.py easycopy --search-nkeys 1"
|
|
tmux bind-key -T copytk Y run-shell -b "python3 $CURRENT_DIR/copytk.py easycopy --search-nkeys 2"
|
|
|
|
# tmux prefix: easycopy action bindings
|
|
tmux bind-key -T prefix S run-shell -b "python3 $CURRENT_DIR/copytk.py easycopy --search-nkeys 1"
|
|
|
|
|
|
# bindings to enter copytk prefix
|
|
tmux bind-key -T copy-mode-vi S switch-client -T copytk
|
|
tmux bind-key -T copy-mode S switch-client -T copytk
|
|
|
|
|
|
tmux set -g @copytk-quickcopy-match-0-0 '[0-9]{4,}'
|
|
tmux set -g @copytk-quickcopy-match-1-0 lines
|
|
|