Sublime Forum

Find panel hotkeys

#1

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

	<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:

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

with no luck.

TIA,
Pablo

0 Likes

#2

Ok, it’s almost working now, using

	{ "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?

0 Likes