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
  • 5 months ago
  • 36 minutes ago
  • 5 years ago

Installs

  • Total 19K
  • Win 10K
  • OS X 7K
  • Linux 3K
Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4
Windows 2 6 12 5 6 1 4 10 10 8 6 9 2 2 12 4 7 5 13 3 3 7 10 12 6 7 2 2 7 10 16 8 8 0 2 6 8 5 7 6 2 0 9 5 5 11
OS X 0 8 9 9 4 1 2 3 13 8 5 4 1 6 9 5 6 6 9 1 3 13 4 9 4 3 1 2 8 9 9 6 2 1 2 2 4 8 4 6 1 5 7 1 7 7
Linux 0 1 4 5 0 0 1 2 1 1 5 5 0 1 4 2 3 0 1 2 0 3 2 2 1 4 3 0 2 2 1 3 1 0 1 2 3 1 2 1 0 0 3 4 6 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.