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

Wrong group name from centaur-tabs-get-group-name function #210

Open
grolongo opened this issue Jun 19, 2023 · 0 comments
Open

Wrong group name from centaur-tabs-get-group-name function #210

grolongo opened this issue Jun 19, 2023 · 0 comments

Comments

@grolongo
Copy link

Hello and thank you for centaur-tabs,

I'm using (derived-mode-p 'dired-mode) "Dired") and (derived-mode-p 'erc-mode) "ERC") in centaur-tabs-buffer-groups to group Dired and ERC related buffers into separate centaur groups.

Everything works as expected. Each Dired and ERC buffers are getting sent to their respective separate group. No complain.

However I noticed something odd:

If I'm in a Dired buffer (which is already in it's own Dired group) and do:
Eval: (centaur-tabs-get-group-name (current-buffer))
it returns "Common", as if this buffer is in the group named "Common", but it is not, it's in the group "Dired".

If I do it for an ERC buffer it returns that it's in one of my project group... what? yet it's definitely not, because it's in the group "ERC".

You would tell me "bug but who cares?" as long as the buffers are getting grouped accordingly.

The thing is I'm making a custom function to have the centaur group name displayed in the mode-line for each buffers, and I was planning to use (centaur-tabs-get-group-name (current-buffer)) to get that, but it returns wrong information.

Is there a way to fix this or any other command to get the correct group name of a buffer?

Thank you!

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

No branches or pull requests

1 participant