diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 3810a7a..b67c304 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -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 │ diff --git a/docs/tmux-keybindings.md b/docs/tmux-keybindings.md index 9d32a09..214a423 100644 --- a/docs/tmux-keybindings.md +++ b/docs/tmux-keybindings.md @@ -3,10 +3,16 @@ Leader: `` ```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: `` ; 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: `` 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: `` 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: `` S-Left Move the visible part of the window left S-Right Move the visible part of the window right ``` +