overdue commit

This commit is contained in:
Henrik Bakken
2020-09-29 02:49:42 +02:00
parent 6cdb7ecc61
commit df57e62c5f
16 changed files with 397 additions and 562 deletions
+12 -7
View File
@@ -60,9 +60,11 @@ bind c copy-mode
# clipboard control
bind P paste-buffer
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection
#bind -T copy-mode-vi y send-keys -X copy-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
bind -T copy-mode-vi r send-keys -X rectangle-toggle
bind y run-shell -b "tmux show-buffer | xclip -sel clip" \; display-message "Copied tmux buffer to system clipboard"
# Refresh client
bind R refresh-client \; display-message "Refresh already"
@@ -86,7 +88,7 @@ bind -r k resize-pane -U 2 \; display-message "Resize up"
bind -r j resize-pane -D 2 \; display-message "Resize down"
# zoom control
bind -n M-f resize-pane -Z
bind -n M-o resize-pane -Z
# split panes using | and -, make sure they open in the same path
bind | split-window -h -c "#{pane_current_path}"
@@ -95,10 +97,10 @@ bind - split-window -v -c "#{pane_current_path}"
# Change layouts
bind o rotate-window
bind Space next-layout
bind K swap-pane -s {up-of}
bind J swap-pane -s {down-of}
bind H swap-pane -s {left-of}
bind L swap-pane -s {right-of}
bind K swap-pane -d -t "{up-of}"
bind J swap-pane -d -t "{down-of}"
bind H swap-pane -d -t "{left-of}"
bind L swap-pane -d -t "{right-of}"
# Choose Window
bind w choose-window
@@ -130,6 +132,9 @@ bind -n M-0 if-shell 'tmux select-window -t :10' '' 'new-window -t :10'
# Kill Selected Pane
bind Q kill-pane
# clear selected pane
bind-key b send-keys -R \; clear-history
# present a menu of URLs to open from the visible pane. sweet.
bind u capture-pane \;\
save-buffer /tmp/tmux-buffer \;\