commit 6e0b569e7def22585c2ba589f7bfb6633ca77ba2
parent 5c1bf8234ed41912016a628acadfc25a3a58b084
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 10 May 2018 15:03:15 -0400
Add binding to repeat command in previous pane
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/links/.tmux.conf b/links/.tmux.conf
@@ -96,6 +96,7 @@ bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE
bind C-s last-window # go to last window with <C-a><C-s>
bind C-a last-pane # go to last pane with <C-a><C-a>
+bind -n M-a last-pane # go to last pane with M-a
bind -r n next-window # next window with <C-a>n
bind -n -r M-n next-window # next window with <M-n>
@@ -210,3 +211,6 @@ bind -n C-M-a split-window -p 50 "source ~/code/fzf-mpd/fzf-mpd.zsh fzf && fm"
# fzf-locate from entire file system and insert result in current pane (Alt-`)
bind -n 'M-`' run "tmux split-window -p 40 'tmux send-keys -t #{pane_id} \"$(locate / | fzf -m | paste -sd\\ -)\"'"
+
+# Change to the previous pane, repeat the last command, change back
+bind -n M-! last-pane \; send-keys C-p C-m \; last-pane