Home Download Buy Blog Forum Support

send args to find_in_files panel

send args to find_in_files panel

Postby cjr on Thu May 10, 2012 1:51 pm

current key binding for find_in_files is:
{ "keys": ["ctrl+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files"} },

Request is to add params to show_panel to fill in the "where", "replace", "find" . For common replacements, we could tie to a key binding, or searching within a known directory (without having to pick it).

like this:
{ "keys": ["ctrl+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files", "Where":<current file>} },
cjr
 
Posts: 3
Joined: Thu May 03, 2012 11:23 am

Re: send args to find_in_files panel

Postby spadgos on Wed Aug 29, 2012 10:38 am

+1
spadgos
 
Posts: 121
Joined: Thu Oct 06, 2011 12:49 am

Re: send args to find_in_files panel

Postby bizoo on Thu Aug 30, 2012 8:02 am

+1
bizoo
 
Posts: 888
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: send args to find_in_files panel

Postby madeingnecca on Tue Jul 30, 2013 8:06 pm

To set the "where" field just pass "where" (all lowercase letters) in the args. Prior to version 2134 the arg was named "location", as you can see in the source of Sidebar Enhancements plugin.

E.g:
Code: Select all
{ "keys": ["ctrl+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files", "where":"<current file>"} }


If you open a sublime-workspace file and you look for the "find_state" key, you can see the other arguments you can pass, like "case_sensitive" or "regex", and so on.

Unfortunately I don't know the argument to populate the "find" field.
I've tried "find", "search", "key", "what" but I had no luck.

If someone knows it, please help, thanks.
madeingnecca
 
Posts: 2
Joined: Wed Dec 19, 2012 7:59 pm

Re: send args to find_in_files panel

Postby mwmessin on Tue Nov 12, 2013 4:12 am

+1

What I want to do is somehow put the selected text into the find: field
mwmessin
 
Posts: 1
Joined: Tue Nov 12, 2013 4:11 am

Re: send args to find_in_files panel

Postby Binocular222 on Sat Dec 21, 2013 8:58 am

+1 too
Should be a way to jam text into panels
Binocular222
 
Posts: 55
Joined: Sat May 18, 2013 4:10 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests