ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Match

by li-vu ST2/ST3

Match - Emacs' occur-mode for Sublime Text

Details

Installs

  • Total 159
  • Win 94
  • OS X 26
  • Linux 39
Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1
OS X 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Match

Find all matches of a given pattern in a given view(s) in Sublime Text, similar to Emacs' occur-mode.

This package is inspired by Emacs' occur-mode and Sean Gilbertson's port to Sublime Text.

Find the package useful? Say thanks by buying me a beer.

Install

The package can be installed using one of the following methods:

Via Package Control (recommended)

Package Control: Install Package > Match

Manual

  1. Sublime Menu > Preferences > Browse Packages ...
  2. git clone https://github.com/li-vu/st-match match

Usage

  • Use one of the following to trigger the search for matches:
    1. Find matches of the current word under the cursor by pressing F8, or
    2. Bring up an input panel by the command Match: Find ...

prompt

  • Once the search finishes, an output panel will list the matches and their line numbers.

  • Use up and down to move between the matches in the output panel. As an match is selected, the view will move to its location, and the match will be underlined in the view.

  • Use enter or double-click to move to a given match.

screen

Options

  • match_use_regex: use regular expression, (default: false).
  • match_case_sensitive: case sensitive (default: false).
  • match_search_in_all_open_files: search in all open files (default: false, i.e. search in only the active view),
  • match_embedded_syntax: embedded the active view syntax highlight into the Match's output panel (default: true). This only works when running in the active view.
  • match_file_name_shortening_threshold: when searching all open files, shorten file names that are longer than the threshold (default: 32 characters).

License

Copyright © 2016 li-vu

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. http://www.gnu.org/licenses/gpl.html

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.