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
  • 2 years ago
  • 2 hours ago
  • 8 years ago

Installs

  • Total 29K
  • Win 14K
  • Mac 11K
  • Linux 4K
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 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 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
Windows 4 0 1 8 3 5 6 7 1 1 2 7 4 4 3 1 5 5 2 9 6 5 0 2 4 6 9 6 6 2 2 9 4 5 5 6 3 5 8 6 7 2 4 4 1 3
Mac 4 3 3 8 10 7 6 6 0 2 3 7 6 8 5 0 2 5 6 4 5 3 0 3 2 5 5 6 5 4 2 3 3 10 3 9 2 1 4 10 6 7 8 1 2 2
Linux 1 1 2 7 2 2 0 2 2 1 1 2 4 2 0 0 1 0 3 2 0 1 2 0 1 0 4 1 0 1 0 0 0 2 1 1 1 1 1 2 2 1 1 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.