Filter line for current opening file by strings/regular expressions, generating the result in a new file.
Usage
Alt + F: filter to lines machting(regex)
Alt + Shift + F: filter to lines not machting(regex)
More:
Features
Filter line by input string (or not contain input string).
Filter line by input regular expression (or not match input regular expression).
Filter line by config file filterline.json(or filterline.eoml) in corresponding .vscode directory.
Support large file filter
Filter line by input string.
Open command palette (⇧⌘p) and type filterline, select Filter Line By Input String in the list.
Type a string and hit <Enter>.
The extension will output matching lines in a new file with postfix .filterline.$(ext) (e.g. 1.log will generate file 1.log.filterline.log).
Filter line by input regex.
Open Command Palette (⇧⌘P) and type FilterLine, select Filter Line By Input Regex in the list.
Type a regular expression and hit <Enter>.
The extension will output matching lines in a new file with postfix .filterline.$(ext) (e.g. 1.log will generate file 1.log.filterline.log).
Filter line by config file
Create config file in .vscode directory (e.g. .vscode/filterline.json or .vscode/filterline.eoml).
Edit the filterline.json/.eoml file to desired format.
Open command palette (⇧⌘p) and type filterline, select Filter Line By Config File in the list.
Large file mode
Perfect support large file filter, but ensure the file is saved before proceeding.
Config file type
There are 2 file types filterline.json and filterline.eoml.
eoml is a simple config file format that created by me(everettjf), only for this project(vscode-filter-line) at present. For more information, please visit eoml.
Config file format type
There are 3 format types. As they are so simple, I will not describe them here. Please visit the demo directly :