From 62063fedeadae79ceea5c7fc6314bda8824bda09 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Fri, 18 Oct 2019 09:12:38 -0400 Subject: [PATCH] tmux: add keybinding to find file paths in scrollback Just like GoToHTML, this is super useful to quickly jump to a long location without having to retype it. --- tmux/tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 227c18a..51ccc67 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -48,6 +48,8 @@ bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -selection clipbo bind H copy-mode\; send -X search-backward "http" \; send -X begin-selection \; send -X next-space-end bind -T copy-mode-vi H send -X start-of-line \; send -X search-again \; send -X begin-selection \; send -X next-space-end +bind P copy-mode \; send -X search-backward "/" \; send -X begin-selection \; send -X next-space-end \; send -X other-end \; send -X previous-space +bind -T copy-mode-vi P send -X clear-selection \; send -X start-of-line \; send -X search-again \; send -X begin-selection \; send -X next-space-end \; send -X other-end \; send -X previous-space #-------# # THEME # -- libgit2 0.28.4