Sublime Forum

Selection for text replacing goes away

#1

Hi, unlike other editors Sublime has several pitfalls where it will unselect before I can replace inside a selection. Can’t Sublime handle it just like Visual Studio etc? I don’t see what’s so good about it in Sublime, it seems to be just broken?

0 Likes

#2

I don’t quite understand what you’re saying. It would be helpful if you could explain:

  • What steps you are performing.
  • What happens as a result.
  • What you want/expect to happen instead.

It may be that the behavior you desire can be achieved via options or key bindings, or more generally via a package.

1 Like

#3

Hi, thank you for your quick reply. I try to name two of the “pitfalls”:

  • using the mouse to set “In selection” to enabled => sometimes unselects
  • using the Backspace key when editing the “Find what:” field => unselects (when there was only one character left in the field)

unselects = there will be no more selection in the main document

For some reason this seems to happen to me more than to other users. Maybe I have to always create the selection in the last step. But I’m accustomed to Visual Studio and the like.

Edit: What I want to happen instead: I’d like the selection to stay because it has not served any purpose. The moment I enter (using also Backspace) what I want to replace is not the right time for Sublime to undo the selecting.

0 Likes

#4

Find-in-selection is indeed a bit finicky like that. Not sure why that is.

0 Likes