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

[Feature Request]: Add function for dynamically enabling/disabling groups #979

Open
cohml opened this issue Nov 19, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@cohml
Copy link

cohml commented Nov 19, 2024

What?

I'd love a function which can dynamically group/ungroup buffers. Concretely, this would mean Neovim starts with all tabs grouped as per config, but then executing the function would revert the bufferline to looking as if no groups were defined in the config to begin with. Re-executing the function would then re-enable to groups as per the config.

Why?

Groups are super handy, but they can also get in the way and aren't always desireable. So it's unfortunate that grouping is hardcoded, such that disabling grouping requires modifying the config and then restarting Neovim. Much nicer would be a way to toggle the groups on and off without leaving the current session. Would make for a super useful keymapping.

@cohml cohml added the enhancement New feature or request label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant