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

feat: buffer groups #179

Merged
merged 86 commits into from
Sep 9, 2021
Merged

feat: buffer groups #179

merged 86 commits into from
Sep 9, 2021

Conversation

akinsho
Copy link
Owner

@akinsho akinsho commented Aug 9, 2021

image

With custom group separators and no highlights or icons

Screen Shot 2021-09-06 at 14 38 01

  • Highlight buffers according to group

  • Sort buffers according to group

  • Group icons

  • Group commands -

    • BufferLineGroupClose <completion>
    • lua API for acting on groups
  • Group separator components

  • Bugs

    • highlights for thin style active buffer broken
    • duplicated space on last group separator start
  • Ensure feature is entirely opt-in

  • documentation

  • tests

@akinsho akinsho mentioned this pull request Aug 20, 2021
@akinsho akinsho force-pushed the feature/buffer-groups branch 4 times, most recently from ec2705f to 690db36 Compare August 27, 2021 15:37
@akinsho akinsho force-pushed the feature/buffer-groups branch 2 times, most recently from 797a1a7 to 36039c7 Compare September 6, 2021 09:16
@akinsho akinsho marked this pull request as ready for review September 6, 2021 13:38
@akinsho
Copy link
Owner Author

akinsho commented Sep 7, 2021

bufferline_group_toggle

@akinsho akinsho merged commit efb9a69 into master Sep 9, 2021
@ShiChenCong
Copy link

can i group file dynamic?when open file

@akinsho
Copy link
Owner Author

akinsho commented Sep 28, 2021

I'm not entirely sure I understand the request, but you have to define groups in advance you can't add them to a group if they don't match the group's definition

@ShiChenCong
Copy link

i mean, when open 3 buffer, i can groupa: buffer 1, buffer 2, groupb: buffer 3, not define on the config file

@akinsho
Copy link
Owner Author

akinsho commented Sep 28, 2021

@ShiChenCong, no, the feature is very new and there are still many things to consider adding, but currently buffers cannot be grouped dynamically by some command. I'm going to wait for things to stabilise and polish some rough edges before I think about adding any new grouping features.

@akinsho akinsho deleted the feature/buffer-groups branch September 28, 2021 10:16
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.

None yet

2 participants