Skip to content

A Sublime Text plugin that filters lines with certain strings or that match a regular expression

License

Notifications You must be signed in to change notification settings

MartyGentillon/FilterLines

 
 

Repository files navigation

Filter Lines plugin for Sublime Text

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.

How to install

Package Control

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.

Github

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"

Available actions

  • 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.

Preferences

  • 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 buffer
  • preserve_search: if true, remembers your latest search string or regex and uses it for your next search
  • invert_search: if true, find lines that do not match (useful when progressively eliminating noise in log files)

Feedback

Demo

Filter Lines Demo

About

A Sublime Text plugin that filters lines with certain strings or that match a regular expression

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published