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

Filter Lines

by davidpeckham ALL

Quickly find all lines matching a string or regular expression

Labels search

Details

  • 3.1.4
    2.0.3
  • github.​com
  • github.​com
  • 11 months ago
  • 2 hours ago
  • 7 years ago

Installs

  • Total 25K
  • Win 12K
  • Mac 9K
  • Linux 3K
Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 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
Windows 2 7 5 4 7 1 0 0 1 6 6 7 4 2 0 11 6 5 7 4 2 0 4 5 5 3 7 2 2 3 5 7 8 6 1 1 8 5 4 8 2 1 2 3 6 8
Mac 0 5 6 8 8 9 1 2 4 6 5 6 7 1 5 7 2 8 5 7 1 5 3 8 4 8 6 1 4 2 8 11 8 9 4 1 10 9 3 7 5 0 2 5 5 8
Linux 0 2 2 2 4 1 0 1 0 1 0 1 0 0 1 0 3 2 2 3 2 1 2 2 1 1 0 2 0 3 0 1 3 0 1 0 1 3 0 1 1 0 0 1 0 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 ⌘+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.