You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 27, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,28 @@
1
-
# Search In Project v1.4.0
1
+
# Search In Project
2
2
3
-
A plugin for [Sublime Text](http://www.sublimetext.com/). Versions 2 and 3 are supported.
4
-
5
-
## Synopsis
6
-
7
-
This plugin lets you use your favorite search tool (`grep`, `ack`, `ag`, `git grep`, or `findstr`) to find strings aross your entire current Sublime Text project.
3
+
This plugin for [Sublime Text 2 and 3](http://www.sublimetext.com/) lets you use your favorite search tool (`grep`, `ack`, `ag`, `git grep`, or `findstr`) to find strings aross your entire current Sublime Text project.
8
4
9
5
It opens a quick selection panel to browse results, and highlights matches inside files.
10
6
11
7
It's easy to add another search tool, if you so desire.
12
8
9
+
**Important note for Windows users: the current release has known issues with running executables, I'd appreciate any bug reports from the field.**
10
+
13
11
## Installation
14
12
15
13
*[Package Control](http://sublime.wbond.net): install package **Search in Project** (this is the recommended method)
16
14
17
15
* Download an [archive of the repository](https://github.com/leonid-shevtsov/SearchInProject_SublimeText/archive/master.zip), and unzip into the Sublime Text Packages folder.
18
16
17
+
### Installing search engines
18
+
19
+
My idea is that if you use this plugin it's because you already use one of the superior search engines like [The Silver Searcher](https://github.com/ggreer/the_silver_searcher) and want to use it from within Sublime Text.
20
+
19
21
## Usage
20
22
21
23
* Use the key binding (`⌘⌥⇧F` on OS X, `Ctrl+Alt+Shift+F` on Windows), or
22
24
* Call the "Search in Project" command;
23
-
* Enter the search query;**the query is passed directly to the shell command.** You are responsible for escaping the query, but on the up side you can specify any command line options to go with it. This plugin doesn't make an effort to abstract you away from search tools, but provides a convenient way of running them from Sublime Text 2 instead.
25
+
* Enter the search query;
24
26
* Hit `Enter` (`Return`). In a short while you'll be presented with a "quck select" panel with the search results. Select any file from that panel (it supports fuzzy searching) to go to the match. The search string will be highlighted with an outline and a circle symbol in the gutter area.
25
27
26
28
If you select text and then run Search In Project, it will pre-fill the search string with the selection text; for example, to search for a word project-wide, do `⌘D, ⌘⌥⇧F, ↩`
@@ -32,7 +34,11 @@ If you run Search In Project again, it will remember the last search string, so
32
34
Configuration is stored in a separate, user-specific `SearchInProject.sublime-settings` file. See the default file for configuration options; links to both could be
33
35
found in the main menu in `Preferences -> Package Settings -> Search In Project`.
34
36
35
-
You should install and use [ack](http://betterthangrep.com/) instead of the default `grep`/`findstr`, because it's much faster. [Here's how to install ack on Windows](http://stackoverflow.com/questions/1023710/how-can-i-install-and-use-ack-library-on-windows).
37
+
## Issues with locating executables
38
+
39
+
If Search In Project has problems with locating executables in Mac, install the [Fix Mac Path plugin](https://github.com/int3h/SublimeFixMacPath).
40
+
41
+
You can always configure the full path to any search engine in the settings, as a catch-all solution.
0 commit comments