[TxMt] Re: key command for jump to beginning of text, rather than beginning of line?

plastichairdoo plastichairdoo at gmail.com
Tue Aug 3 00:21:16 UTC 2010


well, perhaps I could use this as an opportunity to ask once again if any of you Grep gurus out there could write a script that selects paragraphs and lines *only from the first to last character*?

i.e. this:

	<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean odio nibh, euismod a, lobortis in, laoreet eu, eros. Praesent lorem risus, commodo sit amet, viverra in, sagittis nec, justo. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean odio nibh, euismod a, lobortis in, laoreet eu, eros. Praesent lorem risus, commodo sit amet, viverra in, sagittis nec, justo.<p>

not this:

<p>		Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean odio nibh, euismod a, lobortis in, laoreet eu, eros. Praesent lorem risus, commodo sit amet, viverra in, sagittis nec, justo. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean odio nibh, euismod a, lobortis in, laoreet eu, eros. Praesent lorem risus, commodo sit amet, viverra in, sagittis nec, justo.
<p>


it would greatly speed up my workflow.

cheers,
b

On Aug 2, 2010, at 3:36 PM, Hans-Jörg Bibiko wrote:

> Or record a macro à la
> 
> -go to begin of line
> -search for \S
> -deselect by pressing arrow left
> 
> macro:
> ⌘⇠
> ⌘F (search for: \S  regexp ticked; all others unticked)
>> 
> this should work for all lines whose length is greater than 1 and it should be much faster
> 
> 
> Cheers,
> 
> --Hans
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100802/93d909ba/attachment.html>


More information about the textmate mailing list