# HG changeset patch # User zegervdv # Date 1645958989 -3600 # Node ID 91d89b637bd6d6105fb62842ae42291dbb972b48 # Parent edace2b7e9132a7dd1a132a7dc54fed85f58cf51 clean up tmux.conf diff -r edace2b7e913 -r 91d89b637bd6 dot_tmux.conf --- a/dot_tmux.conf Thu Feb 24 17:19:55 2022 +0100 +++ b/dot_tmux.conf Sun Feb 27 11:49:49 2022 +0100 @@ -41,8 +41,6 @@ bind s split-window -v -c "#{pane_current_path}" bind v split-window -h -c "#{pane_current_path}" -bind a split-window -v -p 15 -c "#{pane_current_path}" -# bind c new-window -c "#{pane_current_path}" bind c command-prompt -p "Name:" "new-window -c \"#{pane_current_path}\" -n %%" # Enable delete in command sequencer @@ -57,7 +55,6 @@ bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'V' send -X select-line bind-key -T copy-mode-vi 'r' send -X rectangle-toggle -bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard' unbind-key -T copy-mode-vi MouseDragEnd1Pane unbind -T copy-mode-vi MouseDragEnd1Pane # unbind -t vi-copy MouseDragEnd1Pane @@ -81,7 +78,7 @@ bind-key -T copy-mode-vi 'C-k' select-pane -U bind-key -T copy-mode-vi 'C-l' select-pane -R bind-key -T copy-mode-vi 'C-\' select-pane -l -#act like GNU screen + unbind C-b set -g prefix C-Space bind Space send-prefix @@ -112,16 +109,6 @@ # Local config if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local' -# Plugins -# set -g @plugin 'tmux-plugins/tpm' -# set -g @plugin 'nhdaly/tmux-better-mouse-mode' -# set -g @plugin 'tmux-plugins/tmux-yank' -# set -g @plugin 'Morantron/tmux-fingers' -# set -g @plugin 'laktak/extrakto' -# set -g @plugin 'tmux-plugins/tmux-resurrect' -# set -g @plugin 'tmux-plugins/tmux-continuum' - - # Config set -g @scroll-without-changing-pane "on" set -g @emulate-scroll-for-no-mouse-alternate-buffer "on" @@ -137,17 +124,6 @@ set -g @thumbs-hint-fg-color red set -g @thumbs-reverse enabled -set -g word-separators " " -bind -n C-DoubleClick1Pane if -F '#{m/r:^[^:]*:[0-9]+:,#{mouse_word}}' { - run -C { popup -w90% -h90% -E -d '#{pane_current_path}' ' - nvim `echo #{mouse_word}|awk -F: "{print \"+\"\\$2,\\$1}"` - ' } -} { - run -C { popup -w90% -h90% -E -d '#{pane_current_path}' ' - nvim "#{mouse_word}" || read -p "Press key to continue.. " -n1 -s - ' } -} - bind-key -n 'C-q' popup -w50% -h 90% -x 90% -E -d '#{pane_current_path}' chezmoi cd bind-key -n 'C-z' if -F '#{window_zoomed_flag}' "resize-pane -Z" "send-keys C-z"