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
  • 1 month ago
  • 2 hours ago
  • 5 years ago

Installs

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

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.