dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 704c11661fb8bbe6e3e887648c9d62b8f165f350 (patch)
parent b493e131ea8fce7c1837540058d7115b9bfb981a
Author: Alex Karle <alex@alexkarle.com>
Date:   Sat, 30 Dec 2023 00:10:10 -0500

tmux: Remove plumber concept

This was cool at first, but I rarely use it / it's super
hard to parse a year later!

Diffstat:
M.tmux.conf | 24+-----------------------
1 file changed, 1 insertion(+), 23 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -12,20 +12,6 @@ set-option -g prefix C-a unbind-key C-b bind-key C-a send-prefix -# plumber! `a` in copy-mode sends to the 'tmux-plumb' command (A/Enter splits in new window) -# right-click also opens in the current window (a la Acme) -bind-key -T copy-mode-vi a send-keys -X copy-pipe-no-clear "tmux-plumb #{pane_current_path}" -bind-key -T copy-mode-vi A send-keys -X copy-pipe-no-clear "tmux-plumb -w #{pane_current_path}" -bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "tmux-plumb -w #{pane_current_path}" -bind-key -T root MouseDown3Pane \ - select-pane \; copy-mode -M \; send-keys -X begin-selection \; \ - send-keys -X previous-space \; send-keys -X other-end \; send-keys -X next-space-end \; \ - send-keys -X copy-pipe-and-cancel "tmux-plumb #{pane_current_path}" -bind-key -T copy-mode-vi MouseDown3Pane \ - select-pane \; copy-mode -M \; send-keys -X begin-selection \; \ - send-keys -X previous-space \; send-keys -X other-end \; send-keys -X next-space-end \; \ - send-keys -X copy-pipe-and-cancel "tmux-plumb #{pane_current_path}" - # Less delay on pressing escape (for vim) set-option -sg escape-time 10 @@ -39,17 +25,9 @@ bind-key C-l select-pane -R bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' bind-key -T copy-mode-vi v send-keys -X begin-selection -# hotkeys to search for tmux-plumb-able content +# hotkeys to search for urls / file paths bind-key H copy-mode \; send-keys -X search-backward "http[^ ]*" -bind-key S copy-mode \; send-keys -X search-backward "[a-f0-9]{6,40}" -bind-key F copy-mode \; send-keys -X search-backward "^[^ :@#]*:[0-9]*:.*" bind-key P copy-mode \; send-keys -X search-backward "[^ :@#]*/[^:@# ]*" -bind-key M copy-mode \; send-keys -X search-backward "[^ :@#]*\\([1-9]\\)" - -# bind G into git-grep word under cursor (use with F above) -bind-key G copy-mode \; send-keys -X select-word \; \ - send-keys -X copy-pipe-and-cancel "xclip" \; \ - split-window -c "#{pane_current_path}" -l 10 sh -c 'git grep -n "$(xclip -o)" 2>&1 | less' # Use | and - for more intuitive splits (in the same location!) bind-key | split-window -c "#{pane_current_path}" -h