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

'Highlight only' filter modifier #77

Open
thathaway opened this issue Feb 18, 2020 · 1 comment
Open

'Highlight only' filter modifier #77

thathaway opened this issue Feb 18, 2020 · 1 comment

Comments

@thathaway
Copy link

In some instances, certain events or actions are common with multiple objects, but I'm only interested in a single object instance. I'd like to be able to add a colored filter that can highlight some lines, while not including results that are not already selected by an existing filter in order to help visualize log data. This can be done with more complicated multicondition RegEx filters, but I'd prefer not to have to create a regex for each filter I add, particularly if I want to change the the base entry type I'm filtering on. I also don't want to export a limited selection to a new file to search, since I want to be able to unhide lines to see context in some instances.

Example:

Line 1:Object1 ActionType1
Line 2:Object1 ActionType2
Line 3:Object1 ActionType3
Line 4:Object2 ActionType1
Line 5:Object2 ActionType2
Line 6:Object2 ActionType3
Line 7:Object3 ActionType1
Line 8:Object3 ActionType2
Line 9:Object3 ActionType3

I add a normal text match filter that selects instances with "Object2", lines 5-7. Now, I want to mark ActionType2 as red. Currently, if I add a filter for "ActionType2", it will also expand the search results to include lines 2 and 8, which I don't want to appear when I select "Show Only Filtered Lines". With this new feature, I would have only lines 4,5, and 6 in my results, with line 5 highlighted red.

I would see this as an additional Filter Modifier. Normal "selection" filters would be applied to the line list, then exclusion filters would remove their matching results, and then the Highlight Selected filter would do one more pass to apply to only lines already matching previous selection criteria.

@DavidAnson
Copy link
Member

This could also be done by allowing arbitrary numbers of conditions to be AND/OR’ed when creating a filter.

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