« »

“duplicate line or selection” in Komodo

Friday, 20 February 2009

I saw this blog entry this morning:

Duplicate Line/Selection in Komodo 5

Exploring the ability to create macros and bind them to key commands in Komodo IDE. I'm reposting the below macro that duplicates the lines or the current selection. Thus functionality was previously is Zend Studio 5, went missing from 6, and thanks to the macro, is available in Komodo. Enjoy!


I thought I should mention the Komodo bug -- Extend functionality of the "duplicate line" function -- on which Eric added a new core command to Komodo to do just this... with the added bonus that it also works for block/column selections. This was added just yesterday. Here is the checkin to Komodo Edit's repository. The nightly builds of Komodo 5.1.0a2 from last night has this in it:

Komodo IDE: http://downloads.activestate.com/Komodo/nightly/komodoide/latest-trunk/

Komodo Edit: http://downloads.activestate.com/Komodo/nightly/komodoedit/latest-trunk/

You can assign any key to this command in Komodo's "Editor | Key Bindings" preferences panel. The command name is "Editor: Duplicate Line or Selection".

Tagged: komodo, activestate