Skip to content

[ENHANCEMENT] Splits last position buffer #893

@NullPlane

Description

@NullPlane

I am one of these people who work a little chaotically and I also think that
positions should be able to be quick-swappable...

This is super convenient to do with the help of splits and I currently use them
often however, there is one little problem and that is that splits are just
rendered segments on the same document and the active line changes in that
document once I enter a different split and position/does not change if I just
enter the split.

I'd wish for a mechanism, if multiple splits are opened that, if I go to another
split and edit there to then come back to my current split, the caret/selected
line can automatically return to the previous position it had in that split.

Such that one does not have to eyeball the line. That is especially useful with
keyboard-heavy work or generally multi-split work. Switching splits with the
commands currently is only useful for split manipulation and not in-code.

I'd recommend to allow for a single mouse click on a currently unfocused
split to do the same thing and a second click to change the position in that
split. According to your taste, there are also capabilities for toggleability, e.g.
the single mouse click.

I'd also recommend to add a command to palette to jump to the last stored
position if one diverges in the current split and wants to go back and,
analogously, the ability to set that jump line in a single view (no used splits) if
one wants to edit somewhere without opening a split and then come back.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions