Sublime Forum

Alf + F3 Quick find all - Select more than one word

#1

Using this command if:

  1. I place the cursor inside a word, lets say word1.
  2. Then ctrl mouse click to click inside another word word2 so I have two cursors.
  3. If I use Quick find all, it will only highlight word1.

Is there a way to select both words for all instances of those words?

0 Likes

#2

As far as I’m aware not in the core, no; that command is the equivalent of using Quick Find multiple times in a row until all of the matches are found, and that command wants to reuse the last selected word or selection. Or rather, inherently the selection tools all assume there’s a single find string that they’re looking for.

You could do this from the Find panel with a regex search of word1|word2 (there’s a key binding on Find All in that panel to make this slightly less onorous).

Alternately MultiEditUtils provides this feature.

1 Like

#3

Thanks. I just overwrote the keybinding setting for Alt+F3 with this:

  { "keys": ["alt+f3"], "command": "multi_find_all", "args": {"case": true, "word": true}},

0 Likes