update tmux keybindings

This commit is contained in:
Salar Rahmanian 2025-10-08 10:26:05 -07:00
parent 5a5a5631d7
commit 9f4e818c6a
2 changed files with 28 additions and 28 deletions

View file

@ -23,31 +23,31 @@ All commands below require pressing the prefix first, unless otherwise noted.
| `'` | Split pane horizontally (side by side) | | `'` | Split pane horizontally (side by side) |
| `-` | Split pane vertically (top/bottom) | | `-` | Split pane vertically (top/bottom) |
### Navigating Panes ### Navigating Panes (Dvorak-optimized)
| Key | Action | | Key | Action |
|-----|--------| |-----|--------|
| `h` | Move to left pane | | `d` | Move to left pane |
| `j` | Move to down pane | | `h` | Move to down pane |
| `k` | Move to up pane | | `t` | Move to up pane |
| `l` | Move to right pane | | `n` | Move to right pane |
| `Ctrl-j` | Cycle to next pane | | `Ctrl-h` | Cycle to next pane |
### Resizing Panes ### Resizing Panes
| Key | Action | | Key | Action |
|-----|--------| |-----|--------|
| `H` | Resize pane left (10 units) | | `Ctrl-Left` | Resize pane left (10 units) |
| `J` | Resize pane down (10 units) | | `Ctrl-Down` | Resize pane down (10 units) |
| `K` | Resize pane up (10 units) | | `Ctrl-Up` | Resize pane up (10 units) |
| `L` | Resize pane right (10 units) | | `Ctrl-Right` | Resize pane right (10 units) |
## Window Management ## Window Management
| Key | Action | | Key | Action |
|-----|--------| |-----|--------|
| `Ctrl-h` | Previous window | | `Ctrl-d` | Previous window |
| `Ctrl-l` | Next window | | `Ctrl-n` | Next window |
## Session Management (TMS Integration) ## Session Management (TMS Integration)

View file

@ -37,25 +37,25 @@ let
unbind '"' unbind '"'
bind - split-window -v bind - split-window -v
# Switch panes with hjkl # Switch panes with Dvorak-friendly keys (dhtn)
bind h select-pane -L bind d select-pane -L
bind j select-pane -D bind h select-pane -D
bind k select-pane -U bind t select-pane -U
bind l select-pane -R bind n select-pane -R
# Quick window selection # Quick window selection (Dvorak-friendly)
bind -r C-h select-window -t :- bind -r C-d select-window -t :-
bind -r C-l select-window -t :+ bind -r C-n select-window -t :+
# resize panes # resize panes (Ctrl + Dvorak navigation to avoid conflicts with neovim)
bind -r H resize-pane -L 10 bind -r C-Left resize-pane -L 10
bind -r J resize-pane -D 10 bind -r C-Down resize-pane -D 10
bind -r K resize-pane -U 10 bind -r C-Up resize-pane -U 10
bind -r L resize-pane -R 10 bind -r C-Right resize-pane -R 10
# Quickly switch panes # Quickly switch panes (using Dvorak 'h' for down)
unbind ^J unbind ^H
bind ^J select-pane -t :.+ bind ^H select-pane -t :.+
############################ ############################
## Status Bar ## Status Bar