[Feature]: Restore/retain cursor position when swapping buffers between windows #225
Open
1 task done
Labels
enhancement
New feature or request
good first issue
Good for newcomers
PRs-welcome
I'd love to see a PR for this
Similar Issues
Description
When swapping buffers between windows where
{ move_cursor = true }
it would be nice if the cursor position in each respective buffer is preserved/restored after the swap. As an example, I can restore the cursor position in the active buffer after the swap via the following.Though with this approach I cannot restore the cursor in the buffer that I am swapping with because getting direction-based window ids is internal to the plugin. An alternative to making this behavior the default would be to expose API functions that allow user code to query for window ids that are left/down/up/right to a given window id. The latter would also enable users to implement custom functionality and not require changes to the plugin itself.
The text was updated successfully, but these errors were encountered: