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

[improvement suggestion] Add switch on/off for Files highlighting #1377

Closed
akruphi opened this issue Oct 28, 2022 · 2 comments
Closed

[improvement suggestion] Add switch on/off for Files highlighting #1377

akruphi opened this issue Oct 28, 2022 · 2 comments

Comments

@akruphi
Copy link
Contributor

akruphi commented Oct 28, 2022

I suggest add in Files highlighting switch on/off for rule (may be by keys +/-).

For me it need because now both highlight rules for Executable & extensions ".sh,.py,.pl,.cmd,.exe,.bat,*.com" has identical colors. In some situations it good, but sometimes need quickly show only Executable and be useful temporary off *.sh,... rule without delete it.

@ivanshatsky
Copy link
Contributor

As a workaround, the following technique can be used. Duplicate the highlightning group defined by mask. For the second group set default file colors and enable filtering by file attributes with the executable attribute being set to "off":
image

To disable highlighting files without the executable attribute turn on "Continue processing" option for the first group, to enable highlighting turn that option on. This way you will be able to emulate desired on/off rule behavior:
image

Since the number of highlightning groups is generally unpredictable, to switch highlightning using a macro you can use an autofilter feature, available for (almost) every menu with the Ctrl-Alt-F keys combination. The whole macro will be looking something like

DisableOutput=0x1
Sequence=F9 o h CtrlAltF * . s h Enter o Enter Esc

@akruphi akruphi changed the title Add switch on/off for Files highlighting [improvement suggestion] Add switch on/off for Files highlighting Nov 21, 2022
@akruphi
Copy link
Contributor Author

akruphi commented May 19, 2024

Done in #2206 Thanks @anta999

@akruphi akruphi closed this as completed May 19, 2024
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