From 92a843a7a19d5c4bd3a550e476a96a1ace9915b3 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 19 Sep 2023 23:30:11 +0200 Subject: Shift up/down copy-mode without prefix --- .config/tmux/tmux.conf | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to '.config/tmux/tmux.conf') diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index c6f2ab8..0d33568 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -42,15 +42,22 @@ bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!" # Use Ctrl+l to clear terminal bind C-l send-keys 'C-l' -# Scrollback -#set -g history-limit 10000 - # Mouse set -g mouse on #set -g mouse-select-pane on #set -g mouse-resize-pane on #set -g mouse-select-window on +# Scrollback +#set -g history-limit 10000 + +# Sane scrolling +set -g terminal-overrides 'xterm*:smcup@:rmcup@' + +# Shift up/down copy-mode without prefix +bind-key -n S-Up copy-mode \; send-key Up +bind-key -n S-Down copy-mode \; send-key Down + # Focus events, allow supported requests from applications to passthrough/run in tmux set-option -g focus-events on @@ -180,8 +187,7 @@ if-shell -b 'echo $XDG_SESSION_TYPE | grep -q wayland' "\ bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'cat - >/dev/clipboard'; \ bind-key C-M-v run 'cat /dev/clipboard | tmux load-buffer - ; tmux paste-buffer'" - -#―――――――――――――――――――――――――――――――――――――――――― +# ### Colors ### -- cgit v1.2.3