mirror of
https://github.com/jabirali/tmux-tilish.git
synced 2026-09-10 07:06:18 -04:00
add: keybinding mirroring the default ctrl-b o
This commit is contained in:
parent
5a6316a340
commit
d51f7a9d1e
|
|
@ -107,6 +107,7 @@ while a "pane" is what `i3wm` would call a "window" and `vim` would call a "spli
|
|||
| <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>0</kbd>-<kbd>9</kbd> | Move pane to workspace 0-9 |
|
||||
| <kbd>Alt</kbd> + <kbd>h</kbd><kbd>j</kbd><kbd>k</kbd><kbd>l</kbd> | Move focus left/down/up/right |
|
||||
| <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>h</kbd><kbd>j</kbd><kbd>k</kbd><kbd>l</kbd> | Move pane left/down/up/right |
|
||||
| <kbd>Alt</kbd> + <kbd>o</kbd> | Move focus to next pane |
|
||||
| <kbd>Alt</kbd> + <kbd>Enter</kbd> | Create a new pane at "the end" of the current layout |
|
||||
| <kbd>Alt</kbd> + <kbd>s</kbd> | Switch to layout: split then vsplit |
|
||||
| <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>s</kbd> | Switch to layout: only split |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue