Skip to content

Latest commit

 

History

History
104 lines (67 loc) · 3 KB

tmux.md

File metadata and controls

104 lines (67 loc) · 3 KB

Tmux Usage

This document is to highlight some notes and plugin usage for Tmux

Useful Links:

Contents

General Usage

<prefix> is set to <C-B>

Key Bindings

Some of my general go to key bindings I use a lot, that also probably don't need to be documented.

Some key bindings are mappings provided by plugins. These will be highlighted

Panes

  • <C-h>, <C-j>, <C-k>, <C-l> - Move left/up/down/right panes. Vim mappings to interact with vim windows nicely
  • <prefix> % - split vertically
  • <prefix> " - split horizontally
  • <prefix> q - show pane numbers. Add the number to also switch.
  • <prefix> { - move pane right
  • <prefix> } - move pane left
  • <prefix> <M-LEFT> - increase pane size with arrow keys

Windows

  • <prefix> . - move window
  • <prefix> , - rename window
  • <prefix> c - create window

Sessions

  • <prefix> $ - rename session

Some extended functionality provided by tmux-sessionist

  • prefix + C - prompt for creating a new session by name
  • prefix + X - kill current session without detaching tmux
  • prefix + S - switches to the last session
  • prefix + @ - promote current pane into a new session

Searching

  • <prefix> <space> - Search with tmux-thumbs
  • <prefix> / - Regex search with tmux-copycat

Misc

  • <previx> t - show time
  • <prefix> d - detach session

Plugins

Plugins are managed by TPM.

New plugins added to the ~/.tmux.conf file can be installed with <prefix> I, and uninstalled with <prefix> <M-u> the list of all plugins are viewable here and a select few are documented here

tmux-copycat

github.com/tmux-plugins/tmux-copycat

Search with regex and copy to clipboard by using <prefix> /

  • g - jump to next match (remapped to keep similar to vim)
  • t - jump to previous match (remapped to keep similar to vim)

tmux-menus

github.com/jaclu/tmux-menus

Helpful tmux menu. Triggeed with <prefix> \

  • <prefix> < displays some windows handling options
  • <prefix> > displays some pane handling options

tmux-thumbs

/~https://github.com/fcsonline/tmux-thumbs

Easily copy common patterns (such as hashes, emails) with <prefix> <space>

Use <prefix> ] to paste from tmux buffer