Skip to content
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

Add buffer-close-left, buffer-close-right, and force versions #12229

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

Conversation

john-h-k
Copy link
Contributor

@john-h-k john-h-k commented Dec 10, 2024

Adds new commands:

bcl, bcl!, bcr, bcr!

which close all buffers to the left or right of the current buffer. Feature in VSCode and some other IDEs and is quite useful.
Not sure what the best way to propose things is so I just made a PR as I already use it on my own version of helix. Happy to close if not wanted

Closes all buffers to the left/right of the current buffer.
@cor
Copy link
Contributor

cor commented Jan 3, 2025

Should this also include buffer-close-top and buffer-close-bottom? Might as well add them in one go

@john-h-k
Copy link
Contributor Author

john-h-k commented Jan 3, 2025

Should this also include buffer-close-top and buffer-close-bottom? Might as well add them in one go

This closes left/right wrt the buffers listed in the editor, the name order, rather than visual position on screen (in line with how other IDEs have this command)

Would be happy to add those two but:

  • Would it be confusing (as those two are spatial, the others aren't)
  • Requires more implementation (as it is not just about the document ID list order)

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