mirror of
https://github.com/theniceboy/.config.git
synced 2026-05-10 08:35:56 +08:00
tmux wip (colemak stuff)
This commit is contained in:
parent
ee0575efd5
commit
43173a102f
1 changed files with 22 additions and 13 deletions
35
.tmux.conf
35
.tmux.conf
|
|
@ -80,8 +80,10 @@ unbind 0
|
|||
bind -r C-p previous-window
|
||||
bind -r C-n next-window
|
||||
|
||||
bind s split-window -v
|
||||
bind v split-window -h
|
||||
bind u split-window -vb
|
||||
bind e split-window -v
|
||||
bind n split-window -hb
|
||||
bind i split-window -h
|
||||
|
||||
bind -n M-1 select-window -t 1
|
||||
bind -n M-2 select-window -t 2
|
||||
|
|
@ -118,10 +120,10 @@ bind S choose-tree 'move-pane -v -s "%%"'
|
|||
bind V choose-tree 'move-pane -h -s "%%"'
|
||||
|
||||
# pane resizing
|
||||
bind -r N resize-pane -L 2
|
||||
bind -r E resize-pane -D 2
|
||||
bind -r U resize-pane -U 2
|
||||
bind -r I resize-pane -R 2
|
||||
bind -n M-N resize-pane -L 3
|
||||
bind -n M-E resize-pane -D 3
|
||||
bind -n M-U resize-pane -U 3
|
||||
bind -n M-I resize-pane -R 3
|
||||
|
||||
set -g status-keys emacs
|
||||
set -g mode-keys vi
|
||||
|
|
@ -130,12 +132,19 @@ bind Enter copy-mode
|
|||
|
||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||
bind -T copy-mode-vi i send-keys -X select-word
|
||||
bind -T copy-mode-vi n send-keys -X cursor-left
|
||||
bind -T copy-mode-vi i send-keys -X cursor-right
|
||||
bind -T copy-mode-vi u send-keys -X cursor-up
|
||||
bind -T copy-mode-vi e send-keys -X cursor-down
|
||||
bind -T copy-mode-vi h send-keys -X next-word-end
|
||||
bind -T copy-mode-vi U send-keys -N 5 -X cursor-up
|
||||
bind -T copy-mode-vi E send-keys -N 5 -X cursor-down
|
||||
bind -T copy-mode-vi N send-keys -X start-of-line
|
||||
bind -T copy-mode-vi I send-keys -X end-of-line
|
||||
bind -T copy-mode-vi Y send-keys -X copy-end-of-line
|
||||
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||
|
||||
bind-key -T vi-copy v begin-selection
|
||||
bind-key -T vi-copy V select-line
|
||||
bind-key -T vi-copy r rectangle-toggle
|
||||
bind -T copy-mode-vi = send-keys -X search-again
|
||||
bind -T copy-mode-vi = send-keys -X search-reverse
|
||||
|
||||
|
||||
bind b list-buffers
|
||||
|
|
@ -147,12 +156,12 @@ bind C-g if-shell '[[ $(tmux showw synchronize-panes | cut -d\ -f2) == "on" ]]'
|
|||
'setw synchronize-panes on; set -g pane-border-style fg=red'
|
||||
|
||||
# -- toggle_status
|
||||
bind '#' if-shell '[[ $(tmux show -g status | cut -d\ -f2) == "on" ]]' \
|
||||
bind s if-shell '[[ $(tmux show -g status | cut -d\ -f2) == "on" ]]' \
|
||||
'set -g status off' \
|
||||
'set -g status on'
|
||||
|
||||
# -- fzf_url
|
||||
bind u run -b 'cut -c3- ~/.tmux.conf | sh -s fzf_url'
|
||||
bind l run -b 'cut -c3- ~/.tmux.conf | sh -s fzf_url'
|
||||
|
||||
run 'cut -c3- ~/.tmux.conf | sh -s bind_with_sys_clipboard'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue