From 5835869a28a9acc25e2a9d549fb67f01fff4d0a4 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 11 Mar 2024 12:27:55 -0400 Subject: [PATCH] Bind N and P to moving to the next and previous session --- readme.md | 1 + tmux.normal.conf | 4 ++++ tmux.powerline.conf | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/readme.md b/readme.md index 358a2ce..8c96102 100644 --- a/readme.md +++ b/readme.md @@ -37,6 +37,7 @@ | `W` | Write scrollback buffer to file | | `V` | Enter **copy mode** | | `p` | Paste from the copy buffer | +| `N` and `P` | Move to the next and previous session | ### Without Prefix diff --git a/tmux.normal.conf b/tmux.normal.conf index a0810a6..a7d214a 100644 --- a/tmux.normal.conf +++ b/tmux.normal.conf @@ -107,6 +107,10 @@ bind Down select-pane -D bind Left select-pane -L bind Right select-pane -R # +# bind N and P to next and previous session +bind N switch-client -n +bind P switch-client -p +# # (without prefix) + up,down,left and right to navigate between panes bind -n M-S-Up select-pane -U bind -n M-S-Down select-pane -D diff --git a/tmux.powerline.conf b/tmux.powerline.conf index afed2eb..6c3f5a4 100644 --- a/tmux.powerline.conf +++ b/tmux.powerline.conf @@ -107,6 +107,10 @@ bind Down select-pane -D bind Left select-pane -L bind Right select-pane -R # +# bind N and P to next and previous session +bind N switch-client -n +bind P switch-client -p +# # (without prefix) + up,down,left and right to navigate between panes bind -n M-S-Up select-pane -U bind -n M-S-Down select-pane -D