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@lists.macromates.com http://lists.macromates.com/listinfo/textmate