Feature Requests: Make toggle_panes Keep the Currently Focused Pane; the command (first time) would remove all panes except the current one, and (second time) would restore the original pane layout

The toggle_panes behavior feels a bit counterintuitive.

If I focus on pane 3 and then use toggle_panes, I would expect it to keep the currently focused pane 3 open and close all the others.

However, it currently keeps pane 1/the leftmost pane open and closes the rest instead.

This behavior does not feel logical from a user perspective. It would be more intuitive if toggle_panes always preserved the pane that is currently in focus.

for Yurii’s use case: some panes might have a wide content, e.g. board or a table, which makes me want to open them in a separate tab or window to see it in full screen width. So if I could toggle panes, I won’t need to move away from the page.

1 Like

I hope that we can keep it as a toggle but have it actually toggle, for this use case:

I have several panes, but temporarily need one to be full width.

So the command (first time) would remove all panes except the current one, and (second time) would restore the original pane layout.

(Another way (even better IMO) to accomplish the goal would be to permit panes to scroll off the window width, so that the target pane could be as wide as desired without losing the other panes.)

2 Likes