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

Installs

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

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.