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

Installs

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