mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-24 09:56:53 +00:00
chore(config): tmux: tms keybindings, update docs
Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# Contains configuration from the following sources:
|
# Contains configuration from the following sources:
|
||||||
# - https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html
|
# - https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html
|
||||||
# - https://github.com/dreamsofcode-io/tmux/blob/main/tmux.conf
|
# - https://github.com/dreamsofcode-io/tmux/blob/main/tmux.conf
|
||||||
|
#
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
# ╭──────────────────────────────────────────────────────────╮
|
||||||
# │ Settings │
|
# │ Settings │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
@@ -62,6 +62,7 @@ set -g window-status-format ' #I:#W '
|
|||||||
# │ Bindings │
|
# │ Bindings │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
# bind flags
|
# bind flags
|
||||||
|
# -N = Note / description of the command
|
||||||
# -r = repeatable, only needs prefix once
|
# -r = repeatable, only needs prefix once
|
||||||
# -n = doesn't need prefix
|
# -n = doesn't need prefix
|
||||||
# -t = binds to a certain key-table (root, copy-mode, prefix, etc.)
|
# -t = binds to a certain key-table (root, copy-mode, prefix, etc.)
|
||||||
@@ -95,10 +96,10 @@ unbind p
|
|||||||
bind p paste-buffer
|
bind p paste-buffer
|
||||||
|
|
||||||
# tms bindings
|
# tms bindings
|
||||||
bind C-f display-popup -E "tms"
|
bind -N "tms" t display-popup -E "tms"
|
||||||
bind C-w display-popup -E "tms windows"
|
bind -N "tms windows" C-w display-popup -E "tms windows"
|
||||||
bind C-s display-popup -E "tms switch"
|
bind -N "tms switch" C-s display-popup -E "tms switch"
|
||||||
bind C-r display-popup -E "tms refresh"
|
bind -N "tms refresh" C-r display-popup -E "tms refresh"
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
# ╭──────────────────────────────────────────────────────────╮
|
||||||
# │ Plugins │
|
# │ Plugins │
|
||||||
|
|||||||
@@ -3,10 +3,16 @@
|
|||||||
Leader: `<ctrl><space>`
|
Leader: `<ctrl><space>`
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
|
Space Select next layout
|
||||||
|
! Break pane to a new window
|
||||||
|
" Split window vertically
|
||||||
|
# List all paste buffers
|
||||||
$ Rename current session
|
$ Rename current session
|
||||||
% Split window horizontally
|
% Split window horizontally
|
||||||
& Kill current window
|
& Kill current window
|
||||||
' Prompt for window index to select
|
' Prompt for window index to select
|
||||||
|
( Switch to previous client
|
||||||
|
) Switch to next client
|
||||||
, Rename current window
|
, Rename current window
|
||||||
- Delete the most recent paste buffer
|
- Delete the most recent paste buffer
|
||||||
. Move the current window
|
. Move the current window
|
||||||
@@ -25,6 +31,7 @@ Leader: `<ctrl><space>`
|
|||||||
; Move to the previously active pane
|
; Move to the previously active pane
|
||||||
= Choose a paste buffer from a list
|
= Choose a paste buffer from a list
|
||||||
? List key bindings
|
? List key bindings
|
||||||
|
D Choose and detach a client from a list
|
||||||
E Spread panes out evenly
|
E Spread panes out evenly
|
||||||
L Switch to the last client
|
L Switch to the last client
|
||||||
M Clear the marked pane
|
M Clear the marked pane
|
||||||
@@ -33,11 +40,13 @@ Leader: `<ctrl><space>`
|
|||||||
d Detach the current client
|
d Detach the current client
|
||||||
f Search for a pane
|
f Search for a pane
|
||||||
i Display window information
|
i Display window information
|
||||||
|
l Select the previously current window
|
||||||
m Toggle the marked pane
|
m Toggle the marked pane
|
||||||
|
n Select the next window
|
||||||
o Select the next pane
|
o Select the next pane
|
||||||
q Display pane numbers
|
q Display pane numbers
|
||||||
s Choose a session from a list
|
s Choose a session from a list
|
||||||
t Show a clock
|
t tms
|
||||||
w Choose a window from a list
|
w Choose a window from a list
|
||||||
x Kill the active pane
|
x Kill the active pane
|
||||||
z Zoom the active pane
|
z Zoom the active pane
|
||||||
@@ -65,6 +74,9 @@ Leader: `<ctrl><space>`
|
|||||||
M-Left Resize the pane left by 5
|
M-Left Resize the pane left by 5
|
||||||
M-Right Resize the pane right by 5
|
M-Right Resize the pane right by 5
|
||||||
C-o Rotate through the panes
|
C-o Rotate through the panes
|
||||||
|
C-r tms refresh
|
||||||
|
C-s tms switch
|
||||||
|
C-w tms windows
|
||||||
C-z Suspend the current client
|
C-z Suspend the current client
|
||||||
C-Up Resize the pane up
|
C-Up Resize the pane up
|
||||||
C-Down Resize the pane down
|
C-Down Resize the pane down
|
||||||
@@ -75,3 +87,4 @@ Leader: `<ctrl><space>`
|
|||||||
S-Left Move the visible part of the window left
|
S-Left Move the visible part of the window left
|
||||||
S-Right Move the visible part of the window right
|
S-Right Move the visible part of the window right
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user