tmux revamp
This commit is contained in:
parent
f43d436602
commit
4d473f4088
7 changed files with 143 additions and 44 deletions
|
@ -1,9 +1,17 @@
|
|||
# Reset everything then add what we want exactly
|
||||
unbind-key -a
|
||||
bind C-Space send-prefix
|
||||
|
||||
# Window stuff
|
||||
bind -r H previous-window
|
||||
bind -r L next-window
|
||||
# Windows
|
||||
bind -r p previous-window
|
||||
bind -r n next-window
|
||||
bind -r & kill-window
|
||||
bind -r c new-window
|
||||
bind ',' command-prompt "rename-window %%"
|
||||
bind -r '"' split-window -v -c "#{pane_current_path}"
|
||||
bind -r % split-window -h -c "#{pane_current_path}"
|
||||
# bind "'" command-prompt -T window-target -p index { select-window it ":%%" }
|
||||
bind w choose-tree -Zw
|
||||
bind -r 1 select-window -t:1
|
||||
bind -r 2 select-window -t:2
|
||||
bind -r 3 select-window -t:3
|
||||
|
@ -13,41 +21,38 @@ bind -r 6 select-window -t:6
|
|||
bind -r 7 select-window -t:7
|
||||
bind -r 8 select-window -t:8
|
||||
bind -r 9 select-window -t:9
|
||||
bind r command-prompt "rename-window %%"
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind \\ split-window -v -c "#{pane_current_path}"
|
||||
bind t new-window
|
||||
bind T command-prompt -p "window name:" "new-window; rename-window '%%'"
|
||||
# custom
|
||||
bind m command-prompt -p "Swap with window index:" "swap-window -t '%%'"
|
||||
bind -r [ swap-window -t -1 \; previous-window
|
||||
bind -r ] swap-window -t +1 \; next-window
|
||||
|
||||
# Sessions
|
||||
bind C-s command-prompt -p "session name:" "new-session -s '%%'"
|
||||
bind C-r command-prompt "rename-session %%"
|
||||
bind -r C-L switch-client -n
|
||||
bind -r C-H switch-client -p
|
||||
|
||||
# Pane stuff
|
||||
# Panes
|
||||
bind ! break-pane
|
||||
bind -r left select-pane -L
|
||||
bind -r down select-pane -D
|
||||
bind -r up select-pane -U
|
||||
bind -r right select-pane -R
|
||||
bind -r x kill-pane
|
||||
bind z resize-pane -Z
|
||||
# custom
|
||||
bind e select-layout tiled
|
||||
bind -r h select-pane -L
|
||||
bind -r j select-pane -D
|
||||
bind -r k select-pane -U
|
||||
bind -r l select-pane -R
|
||||
bind -r , resize-pane -L 20
|
||||
bind -r . resize-pane -R 20
|
||||
bind -r - resize-pane -D 7
|
||||
bind -r = resize-pane -U 7
|
||||
bind q kill-pane
|
||||
bind w kill-window
|
||||
bind x swap-pane -D
|
||||
|
||||
|
||||
# Sessions
|
||||
bind $ command-prompt "rename-session %%"
|
||||
bind -r ) switch-client -n
|
||||
bind -r ( switch-client -p
|
||||
|
||||
|
||||
# Tmux util
|
||||
bind p paste-buffer
|
||||
bind X source-file ~/.config/tmux/tmux.conf
|
||||
bind z resize-pane -Z
|
||||
bind : command-prompt
|
||||
bind ^Q detach
|
||||
|
||||
bind C-D detach
|
||||
# ==========
|
||||
# My options
|
||||
set-option -g terminal-overrides ',xterm-256color:RGB'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue