I can't pin exactly when this problem appeared, but if I perform a `Find in Project` and choose to `Replace All`, TM will mess up with line endings.
Example:
Search for: @import "variables" Replace: @import "../variables" Matching: *.scss
Now, if the files are not open, the result in the saved files is literally like this:
LF//LF// Load core variables and mixinsLF// --------------------------------------------------LFLF@import "../variables";LF@import "mixins";LFLFLFLF//LF// ButtonsLF[...]
Where the string LF is literally written to file instead of a line feed character. Files are LF-line-ended and utf-8 encoded. Opening the resultant files after such replacements with other editors will also show these strings in place of new lines.
With open files this doesn't happen because files are not saved to disk after the replacement is performed, and everything seems correct while they're open.
-- David Gasperoni
On 15 Jun 2015, at 15:01, David Gasperoni wrote:
I can't pin exactly when this problem appeared, but if I perform a `Find in Project` and choose to `Replace All`, TM will mess up with line endings.
So it literally converts the newline characters into the two letters `LF`?
Select Bundles → Select Bundle Item… (⌃⌘T)
Then switch to Settings and enter “lineendings”.
Does it find anything beyond the default: `lineEndings = '\n'` in Global.tmProperties?
If it does, then likely this setting is to blame. Though I’m surprised it wouldn’t also apply to files saved outside the find dialog.
Please stop messaging me
Sent from my iPhone
On Jun 15, 2015, at 9:09 AM, Allan Odgaard mailinglist@textmate.org wrote:
On 15 Jun 2015, at 15:01, David Gasperoni wrote:
I can't pin exactly when this problem appeared, but if I perform a `Find in Project` and choose to `Replace All`, TM will mess up with line endings.
So it literally converts the newline characters into the two letters `LF`?
Select Bundles → Select Bundle Item… (⌃⌘T)
Then switch to Settings and enter “lineendings”.
Does it find anything beyond the default: `lineEndings = '\n'` in Global.tmProperties?
If it does, then likely this setting is to blame. Though I’m surprised it wouldn’t also apply to files saved outside the find dialog.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate