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
  • 7 months ago
  • 1 hour ago
  • 6 years ago

Installs

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

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 ⌘+S
  • 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.