aboutsummaryrefslogtreecommitdiff
path: root/cmd-find-window.c
diff options
context:
space:
mode:
authornicm <nicm>2014-05-08 06:03:30 +0000
committernicm <nicm>2014-05-08 06:03:30 +0000
commit540f0b3e45acae9b0c5fa12f7e9170c6c78d177f (patch)
tree57fe676f7f9ebc1521a13aefd89a2837efb59b83 /cmd-find-window.c
parent6369ea10d7f45dfc5c77e7ba163403b37e254e0f (diff)
downloadrtmux-540f0b3e45acae9b0c5fa12f7e9170c6c78d177f.tar.gz
rtmux-540f0b3e45acae9b0c5fa12f7e9170c6c78d177f.tar.bz2
rtmux-540f0b3e45acae9b0c5fa12f7e9170c6c78d177f.zip
Both the two previous ways of navigating panes by direction have
irritating flaws: a) The old way of always using the top or left if the choice is ambiguous is annoying when the layout is unbalanced. b) The new way of remembering the last used pane is annoying if the layout is balanced and the leftmost is obvious to the user (because clearly if we go right from the top-left in a tiled set of four we want to end up in top-right, even if we were last using the bottom-right). So instead, use a combination of both: if there is only one possible pane alongside the current pane, move to it, otherwise choose the most recently used of the choice.
Diffstat (limited to 'cmd-find-window.c')
0 files changed, 0 insertions, 0 deletions