Sublime Forum

Find and Replace loses selection

#1

I’m trying to find and replace a series of strings in a function that I’m changing.

The problem is that as soon as I start typing in the “find” field my selection of text is lost, so I have to go back and select it again every time I want to find-replace a different string.

Am I doing something wrong or is this how it always works?

0 Likes

#2

I think it’s how it works,
MultiEditUtils has a function to add a regex search to current selection. So you can select, add regex & repeat.

1 Like

#3

You can also use the package SelectUntil:

  1. How to select some character with all the multi-selections simultaneously?
  2. https://github.com/xavi-/sublime-selectuntil
  3. Best unknown packages
0 Likes