Skip to content

Commit

Permalink
Fix regress test for am.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Jun 18, 2020
1 parent 6c437d4 commit 3df68d6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion regress/xenl-terminal.sh → regress/am-terminal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TMP=$(mktemp)
trap "rm -f $TMP" 0 1 15

$TMUX2 -f/dev/null new -d || exit 1
$TMUX2 set -as terminal-overrides ',*:xenl@' || exit 1
$TMUX2 set -as terminal-overrides ',*:am@' || exit 1
$TMUX2 set -g status-right 'RRR' || exit 1
$TMUX2 set -g status-left 'LLL' || exit 1
$TMUX2 set -g window-status-current-format 'WWW' || exit 1
Expand Down
25 changes: 25 additions & 0 deletions regress/conf/2e0f96ac3e1c144ce48261a4c9d68a48.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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}"
}
}

0 comments on commit 3df68d6

Please sign in to comment.