An open API service indexing awesome lists of open source software.

https://github.com/davidpeckham/sublime-filterlines

Quickly find all lines matching a string or regular expression
https://github.com/davidpeckham/sublime-filterlines

sublime-package sublime-text-3 sublime-text-plugin

Last synced: 27 days ago
JSON representation

Quickly find all lines matching a string or regular expression

Awesome Lists containing this project

README

          

# 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](http://wbond.net/sublime_packages/package_control/installation)
2. Open the command pallette ⌘+shift+P
3. Select Install Package
3. 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](https://github.com/davidpeckham/sublime-filterlines/blob/master/filter_lines_demo.gif)

## Thanks

Filter Lines is based on a Sublime Text [plugin tutorial by Daniel Beck](http://superuser.com/questions/452189/how-can-i-filter-a-file-for-lines-containing-a-string-in-sublime-text-2). If you want to write a plugin, Daniel's tutorial is a good place to start.