A powerful VS Code extension for filtering text with advanced regex patterns and logical expressions.
Watch how Line Filter helps you:
- Filter log files with complex patterns
- Use AND/OR operators for precise filtering
- Quick access to pattern history
- Work with multiple files simultaneously
- Filter lines using complex search patterns
- Support for AND/OR logical operators
- Regex pattern matching
- Wildcard (*) support
- Real-time highlighting
- Automatic content restoration
- Pattern history with quick access to recent filters
- Multi-file support with persistent highlights
- Seamless editor switching with highlight preservation
- Open any text file in VS Code
- Click the filter icon in the editor title bar or use the command palette to run "Line Filter"
- Enter your filter pattern using the following syntax:
Basic pattern:
"pattern" - Matches lines containing "pattern"
Wildcards:
"test*" - Matches lines containing text starting with "test"
"*test" - Matches lines containing text ending with "test"
"*test*" - Matches lines containing "test" anywhere
Logical operators:
"pattern1" and "pattern2" - Matches lines containing both patterns
"pattern1" or "pattern2" - Matches lines containing either pattern
Complex expressions:
("error*" or "*failed") and "2024" - Matches lines from 2024 containing either
text starting with "error" or ending with "failed"
"error"
- Find lines containing "error""*ERROR*" or "*WARN*"
- Find lines containing ERROR or WARN"2024-01*" and "ERROR"
- Find error lines from January 2024("HTTP*" or "TCP*") and "*failed*"
- Find failed HTTP or TCP related lines
VS Code version 1.60.0 or higher
- Modified the filtering functionality to support displaying results in a new editor.
- Resolved an issue where documents were not loaded correctly in certain cases.
- Added demo GIF to showcase extension features
- Updated documentation for pattern history feature
- Added support for persistent highlights when switching between files
- Improved multi-file filtering experience
- Fixed highlight restoration when switching editors
- Enhanced decoration management
- Added progress notifications
- Initial release with basic filtering functionality
- Support for regex patterns and logical expressions
- Real-time highlighting
- Pattern history
MIT License - see the LICENSE file for details