2020-06-18 20:01:45 +00:00
|
|
|
bind -r Up if -F '#{pane_at_top}' '' 'selectp -U'
|
|
|
|
bind -r Down if -F '#{pane_at_bottom}' '' 'selectp -D'
|
|
|
|
bind -r Left if -F '#{pane_at_left}' '' 'selectp -L'
|
|
|
|
bind -r Right if -F '#{pane_at_right}' '' 'selectp -R'
|
|
|
|
|
|
|
|
bind -n WheelUpPane if -Ft= "#{mouse_any_flag}" "send -M" "send Up"
|
|
|
|
bind -n WheelDownPane if -Ft= "#{mouse_any_flag}" "send -M" "send Down"
|
|
|
|
|
|
|
|
bind w run 'tmux choose-tree -Nwf"##{==:##{session_name},#{session_name}}"'
|
|
|
|
|
|
|
|
bind C {
|
|
|
|
splitw -f -l30% ''
|
|
|
|
set-hook -p pane-mode-changed 'if -F "#{!=:#{pane_mode},copy-mode}" "kill-pane"'
|
|
|
|
copy-mode -s'{last}'
|
|
|
|
}
|
|
|
|
|
2021-08-20 06:58:25 +00:00
|
|
|
set -g word-separators ""
|
2020-06-18 20:01:45 +00:00
|
|
|
bind -n C-DoubleClick1Pane if -F '#{m/r:^[^:]*:[0-9]+:,#{mouse_word}}' {
|
2021-08-20 06:58:25 +00:00
|
|
|
run -C { popup -w90% -h90% -E -d '#{pane_current_path}' '
|
|
|
|
emacs `echo #{mouse_word}|awk -F: "{print \"+\"\\$2,\\$1}"`
|
|
|
|
' }
|
2020-06-18 20:01:45 +00:00
|
|
|
} {
|
2021-08-20 06:58:25 +00:00
|
|
|
run -C { popup -w90% -h90% -E -d '#{pane_current_path}' '
|
|
|
|
emacs "#{mouse_word}"
|
|
|
|
' }
|
2020-06-18 20:01:45 +00:00
|
|
|
}
|