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
  • 12 years ago

Installs

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