[konsole] [Bug 426276] Split view: change view shortcuts

Bernd Steinhauser bugzilla_noreply at kde.org
Sun Mar 17 11:23:01 GMT 2024


https://bugs.kde.org/show_bug.cgi?id=426276

--- Comment #6 from Bernd Steinhauser <linux at bernd-steinhauser.de> ---
(In reply to Alfonso Murolo from comment #5)
> Interesting, is that also supported in tmux? (I do not have a lot of
> experience with it).
Neither do I, but here's an excerpt of the manual:
https://www.man7.org/linux/man-pages/man1/tmux.1.html#DEFAULT_KEY_BINDINGS
;           Move to the previously active pane.
n           Change to the next window
o           Select the next pane in the current window.
p           Change to the previous window.
Up, Down, Left, Right           Change to the pane above, below, to the left,
or to the right of the current pane.

In terms of tmux, a window is what we call a tab or view for Konsole. A pane is
a terminal in that view/tab.
So yes, it does have that capability. Interestingly, it has bindings for
cycling through terminals forward, but not backward. For going back, there is
only the option to select the last pane, which goes back and forth between the
last two used panes.

> What I am currently unsure about your formulation, is that your concept
> implies a linearization and a consequent sorting of the splitted views, in
> order to cycle through them in a predictable manner. If this feature is
> already implemented somewhere in a manner which is generally accepted, that
> would be good to know to take it as reference.

tmux does this by assigning an index to the panes, which is also how I'd
propose to do it. It's the simplest (and most common) way of dealing with this
issue. Like you also have an index for the tab ordering when cycling through UI
elements using the tab key.
In case you want to know, in tmux, you can briefly display the pane index by
using Ctrl+b and q.

Also keep in mind that using cursor keys can be ambiguous as well. Say you have
one terminal left and two terminals split top/bottom on the right.
Now if you're in the left and you use the shortcut to go right, which should
Konsole choose?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list