ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Filter Lines

by davidpeckham ST2/ST3

Quickly find all lines matching a string or regular expression

Labels search

Details

  • 3 3.1.2
    2.0.3
  • github.​com
  • github.​com
  • 9 months ago
  • 1 hour ago
  • 6 years ago

Installs

  • Total 20K
  • Win 10K
  • OS X 8K
  • Linux 3K
Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4
Windows 5 1 3 3 3 6 8 6 3 1 10 8 6 8 6 1 2 8 12 7 6 5 0 2 7 8 7 3 9 1 1 5 5 5 4 8 2 0 0 16 25 8 5 6 3 3
OS X 3 3 0 5 7 9 6 5 4 1 7 7 5 8 8 1 3 5 9 5 3 4 2 0 3 8 8 8 7 4 3 4 8 8 5 8 3 0 0 0 7 9 1 4 0 16
Linux 0 0 1 2 2 2 1 2 0 0 3 2 1 2 3 1 2 1 1 6 1 6 2 0 2 1 4 6 2 0 0 1 4 3 0 2 0 0 0 4 5 4 1 0 0 6

Readme

Source
raw.​githubusercontent.​com

Filter Lines

Quickly find all lines matching a string or regular expression in Sublime Text.

How to Filter

On the Edit > Line menu:

  • Include lines with Regex ⌘+K ⌘+R
  • Include lines with String ⌘+K ⌘+S
  • Exclude lines with Regex
  • Exclude lines with String

On the Edit > Code Folding menu:

  • Fold Excluding Regex
  • Fold Excluding String
  • Fold With Regex
  • Fold With String

On Windows and Linux, use ctrl instead of .

How to Install

Install with Package Control

  1. Install Sublime Package Control
  2. Open the command pallette ⌘+shift+P
  3. Select Install Package
  4. Select Filter Lines

Install with Git

  1. Open the Sublime Text package folder (see Sublime Text > Preferences > Browse Packages…)
  2. Clone this repo
  3. Restart Sublime Text

Demo

Filter Lines Demo

Thanks

Filter Lines is based on a Sublime Text plugin tutorial by Daniel Beck. If you want to write a plugin, Daniel's tutorial is a good place to start.