Keys | Description |
---|---|
prefix + h/j/k/l | Navigation in tmux. |
prefix + H/J/K/L | Resize current pane. |
prefix + d | Detach current session. |
prefix + s | Show all sessions. |
prefix + w | Show all windows. |
prefix + r | Source tmux. |
prefix + I | Install tmux's plugins. |
prefix + , | Rename windows. |
prefix + Alt + u | Remove tmux's plugins. |
prefix + [ | Enter copy mode. |
Control + c | Exit copy mode. |
prefix + x | Quit current pane with confirmation. |
prefix + v | Quit current window without confirmation. |
Control + d | Quit current pane without confirmation (Can't use in neovim). |
prefix + N | Create a template window in tmux (top neovim, bottom terminal). |
tmux new -s <name> # Create new session
tmux attach -t <name> # Attach a session
tmux source-file ~/.tmux.conf
Keys | Description |
---|---|
Control + q | Quit current buffer. |
Control + aq | Quit all buffers. |
Space + number | Move to a buffer by index (1 - 10). |
Keys | Description |
---|---|
(visual mode) Control + n | Toggle comment in normal and visual modes. |
Keys | Description |
---|---|
Control + p | Toggle tree. |
Control + h/j/k/l | Navigation in nvim-tree. |
Keys | Description |
---|---|
Space + ll | Lazy home |
Keys | Description |
---|---|
Space + ff | Find files in current parent directory. |
Space + fg | Grep text in current parent directory. |
Keys | Description |
---|---|
Space + gg | Toggle lazygit. |
Keys | Description |
---|---|
Space + ms | Toggle mason. |
Keys | Description |
---|---|
Alt + p | Move to the previous reference. |
Alt + n | Move to the next reference. |
Keys | Description |
---|---|
Space + f | Format current buffer. |
Space + rn | Rename a variable in a file. |
K | Hover on function to show description. |
gD | Go to declaration. |
gd | Go to definition. |
gr | Show references of a variable. |
gl | Show line diagnostic. |
Control + d | Go to next diagnostic. |
Control + u | Go to previous diagnostic. |
gll | Show list of diagnostics. |
Space + vv | Show lsp information on current buffer. |
Keys | Description |
---|---|
Space + hh | Toggle inlay hint. |
Keys | Description |
---|---|
Space + ds | Add docstring for python. |
Keys | Description |
---|---|
Space + cp | Open interactive window to chat with ChatGPT. |
(visual mode) ct | Translate a text block. |
(visual mode) cs | Summarize a text block. |
(visual mode) cd | Create docstring. |
(visual mode) ce | Explain a code block. |
(visual mode) cf | Fix bugs in a code block. |
(visual mode) cg | Correct grammar in a text block. |
Keys | Description |
---|---|
Control + J | Autocompletion using copilot. |
Keys | Description |
---|---|
Control + m | Toggle markdown preview. |
Keys | Description |
---|---|
Space + a | Turn off highlighting. |
Control + o | Go to [count] older cursor position in jump list. |
Control + i | Go to [count] newer cursor position in jump list. |