<commit_before># Filter Lines plugin for Sublime Text

A Sublime Text plugin that filters lines containing a string or matching a regular expression. Searches are case sensitive by default and use the Python regular expression syntax.

Works with Sublime Text 2 and Sublime Text 3.

* [How to install](#how-to-install)
* [Available actions](#available-actions)
* [Feedback](#feedback)
* [Demo](#demo)

## How to install ##

### Package Control ###

Install Will Bond's [Package Control](http://wbond.net/sublime_packages/package_control), and then:

* In the Command Palette, enter `Package Control: Install Package`
* Search for `Filter Lines` and install it

### Github ###

Go to your Sublime Text "Packages" directory (`Preferences` / `Browse Packages...`).

Then clone this repository:

    $ git clone https://github.com/davidpeckham/FilterLines.git

## Available actions ##

* Edit > Line > Filter To Lines Containing String:  <kbd>Ctrl+Shift+F</kbd>
* Edit > Line > Filter To Lines Matching Regex:  <kbd>Ctrl+Option+Shift+F</kbd> / <kbd>Ctrl+Alt+Shift+F</kbd>
* Edit > Code Folding > Fold To Lines Containing String
* Edit > Code Folding > Fold To Lines Matching Regex

## Preferences ##

* `case_sensitive`:  search is case sensitive by default
* `use_new_buffer_for_filter_results`:  set this to false to overwrite the current buffer
* `preserve_search`:  if true, remembers your latest search string or regex and uses it for your next search

## Feedback ##

* https://github.com/davidpeckham/FilterLines/issues

## Demo ##
<commit_msg>Removed Package Control installation instructions<commit_after># Filter Lines plugin for Sublime Text

A Sublime Text plugin that filters lines containing a string or matching a regular expression. Searches are case sensitive by default and use the Python regular expression syntax.

Works with Sublime Text 2 and Sublime Text 3.

* [How to install](#how-to-install)
* [Available actions](#available-actions)
* [Feedback](#feedback)
* [Demo](#demo)

## How to install ##

Go to your Sublime Text "Packages" directory (`Preferences` / `Browse Packages...`).

Then clone this GitHub repository:

    $ git clone https://github.com/davidpeckham/FilterLines.git

## Available actions ##

* Edit > Line > Filter To Lines Containing String:  <kbd>Ctrl+Shift+F</kbd>
* Edit > Line > Filter To Lines Matching Regex:  <kbd>Ctrl+Option+Shift+F</kbd> / <kbd>Ctrl+Alt+Shift+F</kbd>
* Edit > Code Folding > Fold To Lines Containing String
* Edit > Code Folding > Fold To Lines Matching Regex

## Preferences ##

* `case_sensitive`:  search is case sensitive by default
* `use_new_buffer_for_filter_results`:  set this to false to overwrite the current buffer
* `preserve_search`:  if true, remembers your latest search string or regex and uses it for your next search

## Feedback ##

* https://github.com/davidpeckham/FilterLines/issues

## Demo ##

{'fraction_non_alphanumeric': 0.1050624133148405, 'fraction_numerical': 0.0013869625520110957, 'mean_word_length': 4.758483033932135, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 31, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4165681', 'n_tokens_mistral': 896, 'n_tokens_neox': 840, 'n_words': 319}