ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> komodo-discuss
komodo-discuss
Re: [Komodo-discuss] Selecting complete lines
by Christoph Haas other posts by this author
Apr 18 2008 3:33AM messages near this date
view in the new Beta List Site
Re: [Komodo-discuss] Selecting complete lines | [Komodo-discuss] Bug 75622 status?
Todd,

On Freitag, 18. April 2008, you wrote:
>  Christoph Haas wrote:
>  > However I'm missing one feature in the normal key bindings that are
>  > available in vi bindings. It's 'V' (shift-V) to select a complete
>  > line. I often want to copy a few lines into a new location or move a
>  > few lines. So I'd like to select from the first line (on any column
>  > there) to the last line (also on any column) and press some magic
>  > button to select that part of my file from the first to the last
>  > column. How would I do that in the normal key binding mode?
> 
>  This is where the power of Komodo's macro system comes into play, to be
>  able to add functionality that is not already existing inside of Komodo.

I assumed that macros can just repeat actions I do in the GUI. But seeing 
it's moderately programmable through Javascript and Python is pretty nice. 
I still have to find my way through the API because I didn't use XPCOM 
yet.

>  I posted an example macro that performed this piece of functionality,
>  you can find the details here:
>  http://community.activestate.com/forum-topic/komodo-line-selection-macro

Awesome. Works exactly as expected. Thanks a lot. Perhaps one day it will 
be a standard keybinding that I can use. But I've put the macro on a 
hotkey and am happy now. :)

Cheers
 Christoph (a happy "customer")
Thread:
Christoph Haas
Todd Whiteman
Christoph Haas

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved