Sublime Forum

[SOLVED] Problem setting find panel options

#1

Hi, I’m evaluating ST3. I need to write a plugin that sets the values of the toggle buttons (such as “case sensitive”) in the find panel to various values. As a proof of concept, I entered the following line for a key binding:

{ "keys": ["super+f"], "command": "show_panel", "args": { "panel": "find", "regular_expression":true, "case_sensitive":true,"whole_word":true ,"in_selection":true, "wrap":true,"highlight_matches":true} }

This works properly for all button except “regular_expression” and “highlight_matches”. Any suggestions on what may be the issue? Thanks

4 Likes

Find in files from sublime API
Initializing search terms
Find menu: Keyboard shortcut to enable or disable Regular expressions?
[Solved] Keyboard shortcut - Toggle wrap and highlight matches in find dialog
#2

For the regular expression toggle, the key should be regex.

4 Likes

#3

And for highlight matches, the key should be highlight.

3 Likes

#4

Thanks kingkeith…worked like a charm!

0 Likes

#5

Thanks for the topic and answers! :+1:

I really needed help with this. Using find on big files is a pain without the "highlight": false.
For some reason, this thread does not seem to come up in google searches.

0 Likes

#6

what did you search for? maybe add the keywords here if they are not already in the thread, to help Google index it better :wink:

0 Likes

#7

How do I add tags?

Here is a list of words I tried searching in regards to this issue:

  • Find
  • Search
  • Setting
  • Highlight matches off
  • Large files

:wave: here is the solution people :wink:

0 Likes