Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 8419851

Browse files
added keymaps; more detailed readme; documented configuration options
1 parent 3bd23c3 commit 8419851

4 files changed

Lines changed: 16 additions & 3 deletions

File tree

Default (OSX).sublime-keymap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
{ "keys": ["alt+super+shift+f"], "command": "search_in_project" }
3+
]

Default (Windows).sublime-keymap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
{ "keys": ["alt+ctrl+shift+f"], "command": "search_in_project" }
3+
]

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A plugin for [Sublime Text 2](http://www.sublimetext.com/).
44

55
## Synopsis
66

7-
This plugin makes it possible to use various external search tools (`grep`, `ack`, `ag`, `git grep`, or `findstr`) to find strings inside your current Sublime Text project.
7+
This plugin makes it possible to use various external search tools (`grep`, `ack`, `ag`, `git grep`, or `findstr`) to find strings aross your entire current Sublime Text project.
88

99
It opens a quick selection panel to browse results, and highlights matches inside files.
1010

@@ -16,14 +16,17 @@ Copy the folder into the Packages folder.
1616

1717
## Usage
1818

19-
Call the "Search in Project" command.
19+
* Use the key binding (`⌘⌥^F` on OS X, `Ctrl+Alt+Shift+F` on Windows), or
20+
* Call the "Search in Project" command;
21+
* 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.
22+
* 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.
2023

2124
## Configuration
2225

2326
Configuration is stored in a separate, user-specific `SearchInProject.sublime-settings` file. See the default file for configuration options; links to both could be
2427
found in the main menu in `Preferences -> Package Settings -> Search In Project`.
2528

26-
On any OS I recommend you to install [ack](http://betterthangrep.com/), and use it instead of the default `grep`/`findstr`, because it's much faster.
29+
On any OS I recommend you to install [ack](http://betterthangrep.com/), and use it 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).
2730

2831
* * *
2932

SearchInProject.sublime-settings

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
"search_in_project_engine": "grep",
1010

1111
/* Grep configuration */
12+
/* Path to grep executable; if the standard one doesn't work for you, you can specify an explicit path in your user config file. */
1213
"search_in_project_Grep_path_to_executable": "grep",
14+
/* Do NOT change these options; they are expected to be present for SearchInProject to work correctly. */
1315
"search_in_project_Grep_mandatory_options": "-nr",
16+
/* Specify additional options to be used with all searches here. */
17+
"search_in_project_Grep_common_options": "",
1418

1519
/* Ack configuration */
1620
"search_in_project_Ack_path_to_executable": "ack",

0 commit comments

Comments
 (0)