chore(config): tmux: tms keybindings, update docs

Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
2025-02-27 15:34:11 +02:00
parent 3d987e491e
commit a6f89e80bd
2 changed files with 20 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
# Contains configuration from the following sources:
# - https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html
# - https://github.com/dreamsofcode-io/tmux/blob/main/tmux.conf
#
# ╭──────────────────────────────────────────────────────────╮
# │ Settings │
# ╰──────────────────────────────────────────────────────────╯
@@ -62,6 +62,7 @@ set -g window-status-format ' #I:#W '
# │ Bindings │
# ╰──────────────────────────────────────────────────────────╯
# bind flags
# -N = Note / description of the command
# -r = repeatable, only needs prefix once
# -n = doesn't need prefix
# -t = binds to a certain key-table (root, copy-mode, prefix, etc.)
@@ -95,10 +96,10 @@ unbind p
bind p paste-buffer
# tms bindings
bind C-f display-popup -E "tms"
bind C-w display-popup -E "tms windows"
bind C-s display-popup -E "tms switch"
bind C-r display-popup -E "tms refresh"
bind -N "tms" t display-popup -E "tms"
bind -N "tms windows" C-w display-popup -E "tms windows"
bind -N "tms switch" C-s display-popup -E "tms switch"
bind -N "tms refresh" C-r display-popup -E "tms refresh"
# ╭──────────────────────────────────────────────────────────╮
# │ Plugins │

View File

@@ -3,10 +3,16 @@
Leader: `<ctrl><space>`
```txt
Space Select next layout
! Break pane to a new window
" Split window vertically
# List all paste buffers
$ Rename current session
% Split window horizontally
& Kill current window
' Prompt for window index to select
( Switch to previous client
) Switch to next client
, Rename current window
- Delete the most recent paste buffer
. Move the current window
@@ -25,6 +31,7 @@ Leader: `<ctrl><space>`
; Move to the previously active pane
= Choose a paste buffer from a list
? List key bindings
D Choose and detach a client from a list
E Spread panes out evenly
L Switch to the last client
M Clear the marked pane
@@ -33,11 +40,13 @@ Leader: `<ctrl><space>`
d Detach the current client
f Search for a pane
i Display window information
l Select the previously current window
m Toggle the marked pane
n Select the next window
o Select the next pane
q Display pane numbers
s Choose a session from a list
t Show a clock
t tms
w Choose a window from a list
x Kill the active pane
z Zoom the active pane
@@ -65,6 +74,9 @@ Leader: `<ctrl><space>`
M-Left Resize the pane left by 5
M-Right Resize the pane right by 5
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-Up Resize the pane up
C-Down Resize the pane down
@@ -75,3 +87,4 @@ Leader: `<ctrl><space>`
S-Left Move the visible part of the window left
S-Right Move the visible part of the window right
```