This is something I've longed for but have never seen it in any text editor yet: the ability to simply select markup tags and/or their enclosed contents. Most editors follow the selection logic of word > line, which IMO is rarely useful in working with code.
What I'd like is an assortment of modifier-clicks (command-click, option-click, command-shift-click, option-shift-click, etc.) that perform the following:
(when the pointer is inside a tag) - single-click selection of the current, single tag - single-click selection of the current tag, its corresponding opening/closing tag, and everything in between
(when the pointer is between two tags) - single-click selection of everything between the two most immediate tags (and excluding the tags themselves), with perhaps additional clicks casting wider and wider inter-tag selections (going from <td>[selection]</td> to <tr>[<td>selection</td>]</tr>, for example)
Some items (like the <div> tag in HTML syntax mode) are already being treated as collapsible objects now, but there's no way (AFAIK) to grab such an object and move it around without carefully selecting the whole thing character-to-character. This seems like a needless restriction to me.
Hope that's helpful.
John
On Oct 6, 2004, at 10:39 AM, John Marstall wrote:
This is something I've longed for but have never seen it in any text editor yet: the ability to simply select markup tags and/or their enclosed contents. Most editors follow the selection logic of word > line, which IMO is rarely useful in working with code.
Hey John,
This is a great suggestion. After you mentioned it i realized that this is something that I actually use in Dreamweaver and have not found elsewhere. For those that have not seen it they show what basically amounts to a breadcrumb tree in the status bar at the bottom of a document and you can select the complete tags by clicking on them...
Warm regards,
Eric Curtis
Yes, this is also something that I've been seeking in an editor...
I'd envisioned this in the context of the folding feature, in that this makes explicit the block structure of the tag... at the very least, I'd hoped that you could drag a block while it is folded.
...but as things stand, only some block tags seem to be recognised as collapsable, so this doesn't even look to be that useful a feature, as it currently stands.
...but it's still good! : D
m
On 07/10/2004, at 4:51 AM, Eric Curtis wrote:
On Oct 6, 2004, at 10:39 AM, John Marstall wrote:
This is something I've longed for but have never seen it in any text editor yet: the ability to simply select markup tags and/or their enclosed contents. Most editors follow the selection logic of word > line, which IMO is rarely useful in working with code.
Hey John,
This is a great suggestion. After you mentioned it i realized that this is something that I actually use in Dreamweaver and have not found elsewhere. For those that have not seen it they show what basically amounts to a breadcrumb tree in the status bar at the bottom of a document and you can select the complete tags by clicking on them...
Warm regards,
Eric Curtis
I've seen something similar in DW (very basic though) but I like what your suggesting. I'm in support of it.
-- jheyer
BBEdit does this via some applescripts floating around on the web. I think www.clankwerks.com has them there for download.
On Wed, 6 Oct 2004 13:17:08 -0500, jheyer jheyer@gmail.com wrote:
I've seen something similar in DW (very basic though) but I like what your suggesting. I'm in support of it.
-- jheyer
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate