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
  • 28 minutes ago
  • 8 years ago

Installs

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