[TxMt] Re: manipulating full lines rather than selection

Tim Diggins tim at red56.co.uk
Tue Nov 16 15:06:26 UTC 2010


Oh wow. That's perfect. I didn't realize how great and easy macros were.

thanks!

On Tue, Nov 16, 2010 at 2:58 PM, Steve King <sking at arbor.net> wrote:

> On 2010-11-05 06:30, Tim Diggins wrote:
>
>> Is there a way to make this happen? Can I "decorate' those commands
>> somehow to select the relevant lines first... Or would I just have to
>> rewrite those particular features (for each bundle I want them to happen in?
>> )
>>
>
> You can easily "decorate" these commands by creating macros.  For each
> command, create a macro that first selects the line (Edit -> Select -> Line)
> then does the indentation, comment, or whatever.  Selecting a line when you
> already have a selection converts the entire selection into a line-based
> selection, which is exactly what you want.
>
> --
> Steve King
> Sr. Software Engineer
> Arbor Networks
> +1 734 821 1461
> www.arbornetworks.com <http://www.arbornetworks.com/>
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>



-- 
------------------------------------------------------

Tim Diggins
http://red56.co.uk
http://tim.teamportfolios.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20101116/0c72afaa/attachment.html>


More information about the textmate mailing list