From 28d26fca355831c2af0ebe004d9c3fa396794473 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 20 Aug 2021 07:58:25 +0100 Subject: Update a regress conf for new syntax. --- regress/conf/2e0f96ac3e1c144ce48261a4c9d68a48.conf | 25 --------------------- regress/conf/872441a98b06444acc5ce08eb24aabde.conf | 26 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 25 deletions(-) delete mode 100644 regress/conf/2e0f96ac3e1c144ce48261a4c9d68a48.conf create mode 100644 regress/conf/872441a98b06444acc5ce08eb24aabde.conf diff --git a/regress/conf/2e0f96ac3e1c144ce48261a4c9d68a48.conf b/regress/conf/2e0f96ac3e1c144ce48261a4c9d68a48.conf deleted file mode 100644 index df4c2b1c..00000000 --- a/regress/conf/2e0f96ac3e1c144ce48261a4c9d68a48.conf +++ /dev/null @@ -1,25 +0,0 @@ -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}' -} - -bind -n C-DoubleClick1Pane if -F '#{m/r:^[^:]*:[0-9]+:,#{mouse_word}}' { - popup -w90% -h90% -KE -d '#{pane_current_path}' -R { - emacs `echo #{mouse_word}|awk -F: '{print "+" $2,$1}'` - } -} { - popup -w90% -h90% -KE -d '#{pane_current_path}' -R { - emacs "#{mouse_word}" - } -} diff --git a/regress/conf/872441a98b06444acc5ce08eb24aabde.conf b/regress/conf/872441a98b06444acc5ce08eb24aabde.conf new file mode 100644 index 00000000..b074ad76 --- /dev/null +++ b/regress/conf/872441a98b06444acc5ce08eb24aabde.conf @@ -0,0 +1,26 @@ +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}' +} + +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}' ' + emacs `echo #{mouse_word}|awk -F: "{print \"+\"\\$2,\\$1}"` + ' } +} { + run -C { popup -w90% -h90% -E -d '#{pane_current_path}' ' + emacs "#{mouse_word}" + ' } +} -- cgit