Skip to content

Reuse previous split window if available#1144

Open
huhumt wants to merge 1 commit intoYggdroot:masterfrom
huhumt:reuse_split_window
Open

Reuse previous split window if available#1144
huhumt wants to merge 1 commit intoYggdroot:masterfrom
huhumt:reuse_split_window

Conversation

@huhumt
Copy link
Copy Markdown
Contributor

@huhumt huhumt commented Apr 28, 2026

When with --stayOpen option and open in split window, it will keep creating new split window, this is quite annoying. This PR including two changes:

  • set vertical split to leftabove (more outstanding), and this keeps the same behaviour with horizontal split (default above).
  • try to use existing split window rather than create new, this doesn't affect behaviour when --stayOpen is off.

@Yggdroot
Copy link
Copy Markdown
Owner

If you want to resuse the window, just use <cr> to open the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants