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] Regex based exlcusion? #250

Open
Icy-Thought opened this issue Jan 8, 2025 · 1 comment
Open

[Feature Request] Regex based exlcusion? #250

Icy-Thought opened this issue Jan 8, 2025 · 1 comment

Comments

@Icy-Thought
Copy link

Would it be possible to expand on Centaur Tabs centaur-tabs-excluded-prefixes and have it work through regexp instead? The reason for this request is that I find myself wanting to exclude Centaur Tabs from .pdf, .epub, .mobi ... files but there is no such a thing as centaur-tabs-excluded-suffixes. And instead of implementing a suffix exclusion variable, why not just abstract it into a regexp based exclusion and allow the user to freely control what Centaur Tabs shouldn't touch?

I am not very comfortable at writing lisp code yet and because of this I might've missed something that already exists within Centaur Tabs which allows such a change. And if I did not, is there any chance for such an implementation to land in the project?

Kind regards.

@jcs090218
Copy link
Collaborator

You can try customize the variable centaur-tabs-hide-tab-function. It's easier since there are so many ways to to do this. 🤔

This is my tabs config: https://github.com/jcs-emacs/jcs-emacs/blob/6c9382d896a32d17b05031b8c2992d6d802d17b5/modules/ui/tabs/config.el#L5.

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

2 participants