Skip to content

Grep - AND option #327

@Nico-Strecker

Description

@Nico-Strecker

Is your feature request related to a problem?
I often need to filter console output where multiple conditions must be met at the same time. Currently, GrepConsole only allows combining filters with "OR" logic, so it matches lines if any condition is met. This can be frustrating when I want to filter for lines that satisfy all my criteria simultaneously.

Describe the solution you'd like
I would like to see support for combining filters using "AND" logic, so that only lines matching all specified conditions are displayed. This would make filtering much more powerful and flexible for advanced use cases.

Describe alternatives you've considered In command-line tools like grep, this can be achieved by chaining commands:
grep 'error' logfile.txt | grep 'timeout'
This shows only lines containing both "error" and "timeout". Alternatively, with GNU grep and Perl-compatible regular expressions:
grep -P '(?=.error)(?=.timeout)' logfile.txt This matches lines where both patterns are present. Additional context Adding "AND" logic to GrepConsole filtering would help users who want to refine their searches and only see output that matches all of their criteria.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions