Why do I need to "run a search" to enable replace all?


#1

Surely atom could simply perform the search instead of telling me to press the button to perform the search?

Or am I missing something obvious?


#2

You’re missing something obvious :grinning:

Until you execute a search, there are two potential meanings for what to replace, what was searched for last and what is now in the search box. Some people find one or the other makes sense and when the behavior doesn’t match their expectations, Atom potentially destroyed all their data.

To remove the ambiguity, Atom won’t replace things unless you’ve confirmed exactly what you want replaced by executing a search.


#3

Fair enough. It still “feels” like I’m having to press another button for the sake of it though. Maybe it should just say “click to run the search”…