Find and replace escaping is odd


#1

In almost every other editor, at least in my experience, and several programming languages, one uses \1 to denote a capture group insertion into a replacement string.

Atom, instead of following this convention, seems to use the javascript convention of using $1 style. While this certainly works, it seems a bit confusing, particularly if atom is trying to be an everything editor.

It also leads to some ugly replacement strings, say, for changing @whatever to $whatever. In Sublime, Ruby, TextMate, etc, I would use $\1 as the replace string. In atom, I have to use $$$1. $$ to escape $ and then the third to handle $1.

I tried \$$1, and that does not work.


#2

Interesting point, you might try creating issue in https://github.com/atom/find-and-replace?