[TxMt] Re: Problem with global search and replace: Replace in the wrong spots!

Allan Odgaard mailinglist at textmate.org
Tue Feb 14 11:20:46 UTC 2012


On 13/02/2012, at 09.07, Alex Kessaris wrote:

> I very often use global search and "replace all" in a project. When doing so, my replacement term doesn't go in the right place, but rather in random places in the file, sometimes close to the head of the file.

Is this TextMate 2? If so, your files MUST be UTF-8 and LF-delimited, otherwise folder search may get things wrong as it (presently) doesn’t go through the same encoding / line-feed checks as when opening the file.

Also, after doing the Find you MUST NOT edit the files without then doing a new Find (if you intend to do replacements).



More information about the textmate mailing list