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).