[TxMt] Re: manipulating full lines rather than selection
Tim Diggins
tim at red56.co.uk
Fri Nov 5 15:17:33 UTC 2010
Oh, ok - I can see that use-case. Always interesting how different people
use software differently.
Thanks for all the responses.
On Fri, Nov 5, 2010 at 3:11 PM, Rob McBroom <mailinglist0 at skurfer.com>wrote:
> On Nov 5, 2010, at 10:50 AM, Tim Diggins wrote:
>
> However the more I think about it, the more I think that the current
> behaviour with (what you might call sloppy multi-line selection), for
> indent/dedent and comment/uncomment is not very helpful. Indeed I can't
> understand what need the current behaviour serves (i.e. should be treated as
> a bug).
>
>
> I comment selections now and then (usually at the end of a line). I agree
> that use cases for doing this on multiple-line selections are less common,
> but even there it can come in handy. CSS is a prime example, since it only
> has block style commenting.
>
> .one {
> padding: 0em;
> }
> .two {
> padding: 1em;
> }
>
> If I wanted to comment out the “one” class and selected the first three
> lines, I would end up breaking the “two” class.
>
> /*.one {
> padding: 0em;
> }
> */.two {
> padding: 1em;
> }
>
> So I get around this by selecting everything but the newline.
>
> --
>
> Rob McBroom
> <http://www.skurfer.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/
tim at red56.co.uk
07515 931 642 / +447515931642
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20101105/1a773cac/attachment.html>
More information about the textmate
mailing list