-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
66 lines (61 loc) · 2.24 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
bind-key -T root WheelUpPane {
mighty_scroll_select_pane
if-shell -t "{mouse}" "$PSCHECK #{pane_pid} $MIGHTY_SCROLL_PASS_THROUGH" {
send-keys -t "{mouse}" -M
} {
if-shell -t "{mouse}" "$PSCHECK #{pane_pid} $MIGHTY_SCROLL_BY_LINE || ( [ '$MIGHTY_SCROLL_FALLBACK_MODE' = 'by-line' ] && #{?alternate_on,true,false} )" {
mighty_scroll_with_interval Up
} {
if-shell -t "{mouse}" "$PSCHECK #{pane_pid} $MIGHTY_SCROLL_BY_PAGE || ( [ '$MIGHTY_SCROLL_FALLBACK_MODE' = 'by-page' ] && #{?alternate_on,true,false} )" {
send-keys -t "{mouse}" PageUp
} {
if-shell -t "{mouse}" "[ '$MIGHTY_SCROLL_FALLBACK_MODE' = 'pass-through' ] && #{?alternate_on,true,false}" {
send-keys -t "{mouse}" -M
} {
mighty_scroll_enter_copy_mode
mighty_scroll_with_interval -X scroll-up
}
}
}
}
}
bind-key -T root WheelDownPane {
mighty_scroll_select_pane
if-shell -t "{mouse}" "$PSCHECK #{pane_pid} $MIGHTY_SCROLL_PASS_THROUGH" {
send-keys -t "{mouse}" -M
} {
if-shell -t "{mouse}" "$PSCHECK #{pane_pid} $MIGHTY_SCROLL_BY_LINE || ( [ '$MIGHTY_SCROLL_FALLBACK_MODE' = 'by-line' ] && #{?alternate_on,true,false} )" {
mighty_scroll_with_interval Down
} {
if-shell -t "{mouse}" "$PSCHECK #{pane_pid} $MIGHTY_SCROLL_BY_PAGE || ( [ '$MIGHTY_SCROLL_FALLBACK_MODE' = 'by-page' ] && #{?alternate_on,true,false} )" {
send-keys -t "{mouse}" PageDown
} {
if-shell -t "{mouse}" "[ '$MIGHTY_SCROLL_FALLBACK_MODE' = 'pass-through' ] && #{?alternate_on,true,false}" {
send-keys -t "{mouse}" -M
}
}
}
}
}
bind-key -T copy-mode WheelUpPane {
mighty_scroll_select_pane
send-keys -X stop-selection
mighty_scroll_with_interval -X scroll-up
}
bind-key -T copy-mode WheelDownPane {
mighty_scroll_select_pane
send-keys -X stop-selection
mighty_scroll_with_interval -X scroll-down
mighty_scroll_exit_mode_if_bottom
}
bind-key -T copy-mode-vi WheelUpPane {
mighty_scroll_select_pane
send-keys -X stop-selection
mighty_scroll_with_interval -X scroll-up
}
bind-key -T copy-mode-vi WheelDownPane {
mighty_scroll_select_pane
send-keys -X stop-selection
mighty_scroll_with_interval -X scroll-down
mighty_scroll_exit_mode_if_bottom
}