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

Occur

by dreki ST3

Emacs' M-x occur for Sublime Text 3

Details

  • 1.0.0
  • github.​com
  • github.​com
  • 10 years ago
  • 28 minutes ago
  • 10 years ago

Installs

  • Total 348
  • Win 176
  • Mac 117
  • Linux 55
Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-occur

Emacs' M-x occur for Sublime Text 3

Find all occurrences of a given piece of text in the current file, easily.

Screenshot

After entering app. as the pattern to search for:

screenshot

(The color scheme I'm using in that screenshot is my port of the Proton color scheme from the Vim ecosystem. I have not posted it anywhere but may if there's interest.)

How to install

(Mac only at the moment; sorry, it's what I have. Please feel free to submit a PR against this README file and I'll merge.)

  1. Sublime Menu > Preferences > Browse Packages ...
  2. Open up Terminal.app (or iTerm2.app, or whatever you use)
  3. Type cd, drag the little folder at the top of the Finder window you just opened onto your terminal, and hit [Enter]
  4. Type git clone https://github.com/dreki/sublime-occur and hit [Enter]

Usage notes

Bring up the Command Palette and type 'occur'. You should then see something like 'Occur: Find occurrences in file …'. Hit enter and you'll be prompted to enter a regex pattern (treated as case-insensitive). Hit enter, and you'll be presented with your results in a panel. As you move up and down the list, the selected result will be scrolled into view (in the center of the screen, if possible). When you hit enter, the selected result will be visible in your editor and the results panel will disappear.

Please note that at the current time (2015-03-23), when no results are found, the results panel simply doesn't show up.