Hi Paul,
Carpii UK wrote
Hi René,
Awesome, thanks so much for taking the time to create this!
I didn't realise you could add new menu items with a simple bash scripts like that (Ive looked at bundles in the past but they were hard to decipher).
One question.. The bundle works from the saved file (and so any unsaved changes you've made since are not passed to tr). Likewise the bundle cannot run on a unsaved buffer. I wonder if there's a way around that?
Allan already mentioned one possibility. Another one would be to use the current document as input for the command. I updated the bundle command accordingly. It now uses a small piece of Python code to remove all carriage return symbols from the current document.
Carpii UK wrote
Its not an issue for your bundle as I can just save it, but would be useful to know for the future
Thanks Paul
Kind regards, René
Carpii.zip http://textmate.1073791.n5.nabble.com/file/n28300/Carpii.zip
-- View this message in context: http://textmate.1073791.n5.nabble.com/Convert-CRLF-to-LF-tp28286p28300.html Sent from the textmate users mailing list archive at Nabble.com.