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

Add inverted matches and allow to filter main view #22

Open
2 of 3 tasks
variar opened this issue Dec 2, 2017 · 2 comments
Open
2 of 3 tasks

Add inverted matches and allow to filter main view #22

variar opened this issue Dec 2, 2017 · 2 comments

Comments

@variar
Copy link
Owner

variar commented Dec 2, 2017

Some requests mentioned in mailing list https://groups.google.com/d/msg/glogg-devel/lLE9qLuGK-U/Vad8nj58oxAJ and glogg issues (nickbnf#192)

Can be done with regex, but it might be more user friendly to

@ilpssun
Copy link

ilpssun commented Oct 9, 2020

My personal use case is to use klogg for viewing log file a third-party program creates. That program produces a lot of irrelevant entries in the log that I would like to exclude from view. So far, I have been setting the highlighting to a very light gray so the lines appear almost empty. But that leaves me with large "empty" blocks in the log file. It would be very nice to have the feature "exclude this" for the highlighter/filter to filter out (i. e. hide from view) lines matching a certain pattern.

@variar
Copy link
Owner Author

variar commented Oct 20, 2020

Tried quick hack for "exclude this" filters. Didn't go well because many things depend on line numbers being equal to index in array, without gaps. Looks like this feature will require refactoring internal data structures.

@variar variar changed the title More matching options Add inverted matches and allow to filter main view Apr 21, 2021
variar added a commit that referenced this issue May 23, 2021
This commit adds new experimental feature -- combining multiple search
patterns using boolean operators `and`, `or`, and `not` (#5, #22, #320).

This mode is enabled by separate button in the search panel. When this
mode is enabled all sub-patterns must be enclosed in `"`. `not` operator
requires its pattern to be enclosed in `()`.

Example of valid combination:
```
("pattern 1" or "pattern 2) and not("pattern 3")
```
variar added a commit that referenced this issue May 23, 2021
This commit adds new experimental feature -- combining multiple search
patterns using boolean operators `and`, `or`, and `not` (#5, #22, #320).

This mode is enabled by separate button in the search panel. When this
mode is enabled all sub-patterns must be enclosed in `"`. `not` operator
requires its pattern to be enclosed in `()`.

Example of valid combination:
```
("pattern 1" or "pattern 2) and not("pattern 3")
```
variar added a commit that referenced this issue May 23, 2021
This commit adds new experimental feature -- combining multiple search
patterns using boolean operators `and`, `or`, and `not` (#5, #22, #320).

This mode is enabled by separate button in the search panel. When this
mode is enabled all sub-patterns must be enclosed in `"`. `not` operator
requires its pattern to be enclosed in `()`.

Example of valid combination:
```
("pattern 1" or "pattern 2) and not("pattern 3")
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants