Pony of Shadows

Queen of Truth & King of Practice


oh-my-tmux

Offical Pages

Shorcuts

ponyofshadows@equestria ~> grep "^bind" .config/tmux/tmux.conf
bind C-a send-prefix -2
bind e new-window -n "#{TMUX_CONF_LOCAL}" -e "EDITOR=$EDITOR" sh -c 'case "${EDITOR:-vim}" in *vim) ${EDITOR:-vim} -c ":set syntax=tmux" "$TMUX_CONF_LOCAL";; *) "$EDITOR" "$TMUX_CONF_LOCAL";; esac && "$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF" \; display "$TMUX_CONF_LOCAL sourced"'
bind r run '"$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF"' \; display "#{TMUX_CONF} sourced"
bind -n C-l send-keys C-l \; run 'sleep 0.2' \; clear-history
bind C-c new-session
bind C-f command-prompt -p find-session 'switch-client -t %%'
bind BTab switch-client -l  # move to last session
bind - split-window -v
bind _ split-window -h
bind -r h select-pane -L  # move left
bind -r j select-pane -D  # move down
bind -r k select-pane -U  # move up
bind -r l select-pane -R  # move right
bind > swap-pane -D       # swap current pane with the next one
bind < swap-pane -U       # swap current pane with the previous one
bind + run "cut -c3- '#{TMUX_CONF}' | sh -s _maximize_pane '#{session_name}' '#D'"
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
bind -r C-h previous-window # select previous window
bind -r C-l next-window     # select next window
bind Tab last-window        # move to last active window
bind m run "cut -c3- '#{TMUX_CONF}' | sh -s _toggle_mouse"
bind U run "cut -c3- '#{TMUX_CONF}' | sh -s _urlview '#{pane_id}'"
bind F run "cut -c3- '#{TMUX_CONF}' | sh -s _fpp '#{pane_id}' '#{pane_current_path}'"
bind Enter copy-mode # enter copy mode
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi C-v send -X rectangle-toggle
bind -T copy-mode-vi y send -X copy-selection-and-cancel
bind -T copy-mode-vi Escape send -X cancel
bind -T copy-mode-vi H send -X start-of-line
bind -T copy-mode-vi L send -X end-of-line
bind b list-buffers     # list paste buffers
bind p paste-buffer -p  # paste from the top paste buffer
bind P choose-buffer    # choose which buffer to paste from
  • C-a e open tmux.conf.local in another window with your default editor.
  • C-a r reload config
  • C-l clear
  • C-a C-c new-session
  • C-a C-f search and switch
  • C-a C-Shift-Tab switch to the old session
  • C-a - split window vertically
  • C-a _ split window horizontally
  • C-a h/j/k/l move among panels
  • C-a >/< exchange current pannel with previous or next panel
  • C-a + maximize current pannel
  • C-a H/J/K/L resize pannels
  • C-a C-h/C-l switch to previous or next window
  • C-a Tab switch to previous active window
  • C-a m toggle mouse mode
  • C-a U/F switch to previous active window
  • C-a m switch to previous active window
  • C-a U view URLs (in commandline)
  • C-a F facebook pathpicker (in commnadline)
  • C-a Enter toggle copy mode
  • C-a b list buffers
  • C-a p paste
  • C-a P choose a buffer to paste

Waht’s more

  • C-a d tmux detach
  • C-d exit
  • C-a x kill current pannel
  • C-a : command mode