2020-09-03 19:29:24 +02:00
|
|
|
set-option -ga terminal-overrides ",st-256color:Tc"
|
|
|
|
|
2020-01-17 19:35:48 +01:00
|
|
|
setw -g mode-keys vi
|
|
|
|
set -g mouse on
|
|
|
|
|
2020-09-03 19:29:24 +02:00
|
|
|
set-option escape-time 0
|
|
|
|
|
2020-01-17 19:35:48 +01:00
|
|
|
set-option -g allow-rename off
|
2020-08-03 13:39:18 +02:00
|
|
|
|
|
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
|
2020-09-03 19:29:24 +02:00
|
|
|
bind h select-pane -L
|
|
|
|
bind j select-pane -D
|
|
|
|
bind k select-pane -U
|
|
|
|
bind l select-pane -R
|
2020-08-09 21:23:00 +02:00
|
|
|
|
2020-08-03 13:39:18 +02:00
|
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
2020-08-09 21:23:00 +02:00
|
|
|
bind-key -T copy-mode-vi Escape send -X cancel
|
|
|
|
|
|
|
|
bind-key -n C-p run "xclip -o | tmux load-buffer -"
|
|
|
|
bind-key -n C-y run "tmux show-buffer | xclip -i -sel p -f | xclip -i -sel c"
|
2020-09-03 21:15:33 +02:00
|
|
|
|
|
|
|
bind-key -n C-e run "tmux setenv TMUX_PANE_CONTENT \"$(tmux capture-pane -p | sed 's/\\\"/\\\\\"/g')\" && tmux new-window -n:edit_pane \"echo $TMUX_PANE_CONTENT | nvim \\\"+normal G\\\" \\\"+set filetype=zsh\\\" -\" && tmux setenv -u TMUX_PANE_CONTENT"
|