Home Download Buy Blog Forum Support

Find panel hotkeys

Find panel hotkeys

Postby pablog on Sun Sep 04, 2011 3:46 pm

Hi all! There are any hotkeys available for the buttons on the find panel?

In ST1, I was using

ctrl+f: open find panel
alt+f: find (in find panel)
alt+a: find all (in find panel)
alt+p: find previous (in find panel)

defining

Code: Select all
   <binding key="alt+f" command="findNext">
      <context name="option" value="isFindWidget"/>
   </binding>
        ...


in Default.sublime.keymap, but cannot find the equivalent context option
in the new JSON syntax, tried with something like:

Code: Select all
   { "keys": ["alt+a"], "command": "findAll", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
        ....


with no luck.

TIA,
Pablo
pablog
 
Posts: 2
Joined: Sun Sep 04, 2011 3:36 pm

Re: Find panel hotkeys

Postby pablog on Sun Sep 04, 2011 9:03 pm

Ok, it's almost working now, using

Code: Select all
   { "keys": ["alt+a"], "command": "find_all", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
     { "keys": ["alt+f"], "command": "find_next", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
   { "keys": ["enter"], "command": "find_next", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
   { "keys": ["alt+p"], "command": "find_prev", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
   { "keys": ["alt+s"], "command": "toggle_in_selection", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
   { "keys": ["alt+w"], "command": "toggle_wrap", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
   { "keys": ["alt+r"], "command": "toggle_regex", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
   { "keys": ["alt+c"], "command": "toggle_case_sensitive", "context":
      [
         { "key": "panel_visible", "operator": "equal", "operand": true }
      ]
   },
     ....


but this work with ANY panel activated, is there a way to specify the find panel only
in the context?
pablog
 
Posts: 2
Joined: Sun Sep 04, 2011 3:36 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 15 guests