A Sublime Text plugin that filters lines containing a string or matching a regular expression. Searches are case sensitive by default and use the Python regular expression syntax.
Works with Sublime Text 2 and Sublime Text 3.
Install Will Bond's Package Control, and then:
- In the Command Palette, enter
Package Control: Install Package
- Search for
Filter Lines
and install it
Sublime Text 3 beta users, see Will's alpha release of Package Control for Sublime Text 3.
Go to your Sublime Text "Packages" directory (Preferences
/ Browse Packages...
).
Then clone this GitHub repository:
$ git clone https://github.com/davidpeckham/FilterLines.git "Filter Lines"
- Edit > Line > Filter With Regex: ⌘+K ⌘+R
- Edit > Line > Filter With String: ⌘+K ⌘+S
- Edit > Code Folding > Fold With Regex
- Edit > Code Folding > Fold With String
On Windows and Linux, press the ctrl key instead of the ⌘ key.
case_sensitive_regex_search
: set this to true to make regex search case-sensitive (default is true)case_sensitive_string_search
: set this to true to make string search case-sensitive (default is false)use_new_buffer_for_filter_results
: set this to false to overwrite the current bufferpreserve_search
: if true, remembers your latest search string or regex and uses it for your next searchinvert_search
: if true, find lines that do not match (useful when progressively eliminating noise in log files)