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

Occur

by dreki ST3

Emacs' M-x occur for Sublime Text 3

Details

Installs

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