Home Download Buy Blog Forum Support

Assigning to commands to the same key binding

Assigning to commands to the same key binding

Postby mbond on Sun Jul 31, 2011 10:01 pm

From here:
http://sublimetext.userecho.com/topic/43294-incremental-find-should-retain-last-search-option/?comment_form_activate=true#comment-form

Basically, i want to emulate emacs and textmates ctrl+s search.

If i could do this:
Code: Select all
{ "keys": ["ctrl+s"], "command": "show_panel", "args": {"panel": "find"} },
{ "keys": ["ctrl+s"], "command": "find_next" },


In my key config file I think it would do what i want it to do. However, the above doesn't work. It comes up saying "unable to find find" if the word "find" exists in the document it finds that word, but never actually brings up the find panel. Pretty sure its just doing the "find_next" and skipping the first one.

If i remove the "find_next" command, it works, except it always comes up with "find" in the box the first time. Which, is odd.

Any ideas on how to make this work?
mbond
 
Posts: 35
Joined: Thu Feb 03, 2011 3:49 pm

Re: Assigning to commands to the same key binding

Postby mbond on Wed Aug 03, 2011 12:31 pm

no one?
mbond
 
Posts: 35
Joined: Thu Feb 03, 2011 3:49 pm

Re: Assigning to commands to the same key binding

Postby mbond on Wed Sep 28, 2011 11:43 am

mbond
 
Posts: 35
Joined: Thu Feb 03, 2011 3:49 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 17 guests