Home Download Buy Blog Forum Support

Automatically slurp selected text when finding

Automatically slurp selected text when finding

Postby blamblamblam on Fri Jan 04, 2013 2:50 am

Sorry if this is a dupe, but I've searched around for a bit and I haven't found if/how I can get Sublime Text in OSX to automatically search for the selected text when doing CMD-F or SHIFT-CMD-F. My text editor muscle memory comes from Windows, and it's non-trivial for me to do CMD-E every time I want to search for selected text. What's worse is that "close tab" is just a key away, at CMD-W. Is there a canonical way to combine the slurp-to-find-buffer and find-text commands into a single key binding?
blamblamblam
 
Posts: 2
Joined: Fri Jan 04, 2013 2:47 am

Re: Automatically slurp selected text when finding

Postby svenax on Fri Jan 04, 2013 3:14 am

You can put
Code: Select all
"find_selected_text": true
in your user preferences file to get that behavior on OS X too.
svenax
 
Posts: 150
Joined: Tue Dec 20, 2011 12:47 pm

Re: Automatically slurp selected text when finding

Postby blamblamblam on Fri Jan 04, 2013 6:45 pm

Thanks. You've single-handedly eliminated the primary dealbreaker I had with Sublime Text.

[ insert animated GIF of my mind being COMPLETELY BLOWN ]
blamblamblam
 
Posts: 2
Joined: Fri Jan 04, 2013 2:47 am

Re: Automatically slurp selected text when finding

Postby iamntz on Fri Jan 04, 2013 7:19 pm

@blamblamblam: i think this is what you are looking for
iamntz
 
Posts: 905
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania


Return to Technical Support

Who is online

Users browsing this forum: Markus Gritsch, Yahoo [Bot] and 17 guests