diff --git a/README.md b/README.md index c0ac0b5..5349505 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ while a "pane" is what `i3wm` would call a "window" and `vim` would call a "spli | Alt + Shift + 0-9 | Move pane to workspace 0-9 | | Alt + hjkl | Move focus left/down/up/right | | Alt + Shift + hjkl | Move pane left/down/up/right | +| Alt + o | Move focus to next pane | | Alt + Enter | Create a new pane at "the end" of the current layout | | Alt + s | Switch to layout: split then vsplit | | Alt + Shift + s | Switch to layout: only split | diff --git a/tilish.tmux b/tilish.tmux index 94a2da7..17d958a 100755 --- a/tilish.tmux +++ b/tilish.tmux @@ -15,7 +15,7 @@ # shellcheck disable=SC2250 # Check input parameters {{{ - # Whether we need to use legacy workarounds (required before tmux 2.7). + # Whether we need to use legacy workarounds (required before Tmux 2.7). legacy="$(tmux -V | grep -E 'tmux (1\.|2\.[0-6])')" # Read user options. @@ -166,6 +166,9 @@ else tmux $bind "${mod}r" run-shell 'tmux select-layout'\\\; send escape fi +# Switch pane via Alt + o. (Mirrors Tmux `Ctrl-b o` and Emacs `Ctrl-x o`.) +tmux $bind "${mod}o" select-pane -t :.+1 + # Switch to pane via Alt + hjkl. tmux $bind "${mod}${h}" select-pane -L tmux $bind "${mod}${j}" select-pane -D