If you File
> Find in Files...
⇧+⌘+F you're brought to the Find Results
, listing the files and highlighted matches. You can double-click either the filename/path or the matched line to open the file at the right line.
I wonder if there is a way to do exactly what the double-click does via keyboard?
With Sublimes great file switching capabilities, I thought there must be a way to keep your hands on the keyboard when doing Find in Files...
.
It appears a plugin has been created to do this. Took a quick look, there are some additional features in the plugin. While my original answer below will work, it will be much easier to install an existing plugin.
https://sublime.wbond.net/packages/BetterFindBuffer
Doable with a plugin.
Set up a key binding with the command
find_in_files_goto
. Be careful when doing this though. Ideally, there would be some setting that identifies this view as the "Find In Files" view, so you could use that as a context. But I'm not aware of one. Of course, if you do find one, let me know.Edit Pulling up the example key binding into the main body of the answer.
try Ctrl+P - this quick-opens files by name in your project, For a full list of keyboard shortcuts see here
the command 'next_result' will do this. using the neat idea muhqu posted about using scope, you can make it so that you can press 'enter' on the line that you want to goto:
It is possible to emulate a double click in Sublime Text by executing the
drag_select
command with an argument of"by": "words"
(as seen in the Defaultsublime-mousemap
file).However, you need to pretend that the mouse is where the caret is for this work. The following plugin will do this:
To be used in combination with a keybinding like:
on
SublimeText 3
I had to useF4
(for going to the current result file) andShift +F4
(for previous result).From the default keymap...
I hope this post helps.
SP
Try Shift+F4 (fn+Shift+F4 on the Aluminum Keyboard).