ActiveState Community

LineActions

Posted by webdiv on 2009-06-11 22:25
OS: All / Any

When I switched to Komodo I was used to TextMate and wanted the simple delete line and copy line commands found there. These two javascript macros make that possible although I should note that the copy line uses the clipboard, so every time you use it, you're overwriting clipboard contents.

CTRL + SHIFT + D to duplicate the line you're on

CTRL + SHIFT + K to delete the line you're on

Simple. Won't work correctly if you're on the last line of a file. In use for over a year. Needed to give it to a co-worker so I thought I'd just put it up for anyone else if they want it.

AttachmentSize
LineActions.kpz1.25 KB

nathan | Sat, 2009-06-13 07:37

Don't mean to spoil your creativity or anything but these options are offered natively :) Check the shortcuts.

Either way, nicely done! ;)

webdiv | Sat, 2009-06-13 16:29

I'm sure I wouldn't have done it if it was already there! :)

Thanks. Great minds must think alike- even my keybindings are the same. I wonder if this was added sometime after I started using Komodo. :)