comparison dot_tmux.conf @ 470:e4937efdf43e

Add some popup bindings for tmux
author Zeger Van de Vannet <zegervdv@me.com>
date Thu, 30 Sep 2021 17:36:18 +0200
parents ce08bc71b455
children 38b7afc9e492
comparison
equal deleted inserted replaced
469:c983b1061bab 470:e4937efdf43e
131 set -g @scroll-without-changing-pane "on" 131 set -g @scroll-without-changing-pane "on"
132 set -g @emulate-scroll-for-no-mouse-alternate-buffer "on" 132 set -g @emulate-scroll-for-no-mouse-alternate-buffer "on"
133 133
134 run-shell ~/.tmux/plugins/tmux-better-mouse-mode/scroll_copy_mode.tmux 134 run-shell ~/.tmux/plugins/tmux-better-mouse-mode/scroll_copy_mode.tmux
135 run-shell ~/.tmux/plugins/tmux-yank/yank.tmux 135 run-shell ~/.tmux/plugins/tmux-yank/yank.tmux
136
137 set -g word-separators " "
138 bind -n C-DoubleClick1Pane if -F '#{m/r:^[^:]*:[0-9]+:,#{mouse_word}}' {
139 run -C { popup -w90% -h90% -E -d '#{pane_current_path}' '
140 nvim `echo #{mouse_word}|awk -F: "{print \"+\"\\$2,\\$1}"`
141 ' }
142 } {
143 run -C { popup -w90% -h90% -E -d '#{pane_current_path}' '
144 nvim "#{mouse_word}" || read -p "Press key to continue.. " -n1 -s
145 ' }
146 }
147
148 bind-key -n 'C-q' popup -w50% -h 90% -x 90% -E -d '#{pane_current_path}' chezmoi cd