Delete Line Macro in TextMate
TextMate is a great text editor. One key command that I really miss in it is a 'Delete Line' command. It's pretty simple to implement though. Here's how:- Under the Bundles menu select Macros->Start recording
- Select a line in an editor window([Option]+[Shift]+L)
- Delete the line ([Backspace])
- Under the Bundles menu select Macros->Stop recording
- Under the Bundles menu select Macros->Save last recording
- Give it a name; 'Delete Line' seems most appropriate
- Assign it a keystroke. I use [Option]+D.
2 comments:
Try ctrl-shift-K, just for fun ;).
Try ctrl-shift-K, just for fun ;)
Thanks Brett. At first, I tried your command and nothing happened; I figured you were messing with me ;-) But I figured out what was going on. I've actually been using TextMate since the day it was first released. It didn't use to have a 'Delete Line' command, so I had to roll my own quite a while back. Unfortunatly, I saved my Macro into the Text.bundle which has subsequently overridden the new versions containing the [ctrl]+[shift]+k. Deleting ~/Library/Application Support/TextMate/Bundles/Text.bundle fixed the problem and, voila, the TextMate's default 'Delete Line' command reappeared.
Anyway, thanks for pointing that out.
Post a Comment