TextMate, Redux of the Redux
Posted November 17th, 2005 @ 07:10pm by Erik J. Barzeski
In BBEdit, you can find and replace tabs and carriage returns quite easily. Hell if I could figure out how to do that in TextMate today. \t and \r certainly didn't work, and copying and pasting tabs and carriage returns into a single line NSTextField is not my idea of a good time.
I keep trying TextMate, and it keeps disappointing me. Hit http://nslog.com/TextMate for any other posts I've made on the app.
Posted 17 Nov 2005 at 7:42pm #
To replace carriage returns use \n. \t will work for tabs. But be sure to have "Regular expression" checked in the Find window, otherwise they'll just replace literal \n and \t.
\t doesn't seem to replace tabs when you use spaces for tabs though.
Posted 17 Nov 2005 at 8:33pm #
If it is a Cocoa text widget, you can hit Control-Q before the tab or return, which will make sure it's not interpreted as a control character.
Posted 18 Nov 2005 at 4:09am #
That's precious. Thank you, Seth.