Skip to content

Save/Load Editor Splits #13510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

useche
Copy link
Contributor

@useche useche commented May 11, 2025

Add commands save-splits and load-splits. More details of each command:

  • save-splits: It saves the current splits with a default name. A string can be used as split name and that name is later used for recalling in the load-splits. A split can be overwritten by simply saving the split with the same name. Example: :save-splits a will save the current split as a.
  • load-splits: Close the current splits and open the named splits. If an argument is used, it tries to open the named splits. Example: :load-splits a will load the split previously saved with :save-splits a.

This is useful by itself but it is the stepping stone for other very useful features like:

  1. Persistent splits.
  2. Undo/Redo splits.

useche added 2 commits May 11, 2025 05:52
More details of each command:
- `save-splits`: It saves the current splits with a default name.
  A string can be used as split name and that name is later used for
  recalling in the `load-splits`. A split can be overwritten by simply
  saving the split with the same name. Example: `:save-splits a` will
  save the current split as `a`.
- `load-splits`: Close the current splits and open the named splits.
  If an argument is used, it tries to open the named splits. Example:
  `:load-splits a` will load the split previously saved with
  `:save-splits a`.
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.

1 participant