On 1/10/2006, at 6:58, Andreas Duus Pape wrote:
Hello. Can I "save a file with line breaks" i.e. have TextMate save a text file with hard wrap?
So you want to keep it soft wrapped in the buffer, but the version which goes to disk should be hard wrapped?
There is no built-in support for this, but you could overload ⌘S to run a command which takes Entire Document as input and does something like:
fold -sw$TM_COLUMNS >"$TM_FILEPATH"
This would then save a hard wrapped version on ⌘S. Although you would need to check for when TM_FILEPATH is unset, and open a file dialog (e.g. via AppleScript) to request the initial filename.