What I'm looking for is the ability to select the contents of a quoted attribute (HTML for instance), preferably with a keyboard shortcut.
About 75% of my workday is spent editing existing HTML documents, and this ability would be a HUGE time-, and wrist-, saver. I hate having to go to the mouse and drag select every time I need to change the href contents of an A tag.
If this ability already exists, either in TextMate, or even native to OS X (I'm a newcomer), please, please, please tell me where to find it. If it doesn't, please, I beg you, add it to this AMAZING piece of software.
Thank you.
Warren L. Parsons
i wrote this stuff up in my personal bundle I have home and end keys mapped to select the next contents of an html attribute (between quotes) opt-home & opt-end keys mapped to select the entire next html attribute (space attrib = " contents ") ctrl-home & end keys mapped to the text contents of html tag pairs (like the "fred" in <b>fred</b>) ctrl-opt-command-end mapped to insert new html attribute in current tag
I had all this stuff mapped out with the tab opt-tab, etc... but that interferes with other native stuff.
I had originally wanted everything to be mapped to tab & shift-tab and use scopes to determine what you were intending to do, but the current scoping system and html bundle keep confusing the scopes for things and it got to be way too complicated.
enjoy.
PS: beware... there are some crazy half-baked things in there too. you might want to delete anything you don't know what is. I've also got some of my modified asp.net stuff in there too.
On Nov 17, 2005, at 11:01 AM, Warren Parsons wrote:
What I'm looking for is the ability to select the contents of a quoted attribute (HTML for instance), preferably with a keyboard shortcut.
About 75% of my workday is spent editing existing HTML documents, and this ability would be a HUGE time-, and wrist-, saver. I hate having to go to the mouse and drag select every time I need to change the href contents of an A tag.
If this ability already exists, either in TextMate, or even native to OS X (I'm a newcomer), please, please, please tell me where to find it. If it doesn't, please, I beg you, add it to this AMAZING piece of software.
Thank you.
Warren L. Parsons
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Thank you Thomas. This is definitely much closer to what I was hoping for. The only drawback I see at present is that you need to insert your cursor at the beginning of the attribute value you want to select before hitting END, but that's certainly acceptable for now. Hopefully I'll learn a little more about command creation in the near future and I'll be able to tweak the awesome (for me, right now) work you've done here.
On Nov 17, 2005, at 1:31 PM, thomas Aylott wrote:
i wrote this stuff up in my personal bundle I have home and end keys mapped to select the next contents of an html attribute (between quotes) opt-home & opt-end keys mapped to select the entire next html attribute (space attrib = " contents ") ctrl-home & end keys mapped to the text contents of html tag pairs (like the "fred" in <b>fred</b>) ctrl-opt-command-end mapped to insert new html attribute in current tag
I had all this stuff mapped out with the tab opt-tab, etc... but that interferes with other native stuff.
I had originally wanted everything to be mapped to tab & shift-tab and use scopes to determine what you were intending to do, but the current scoping system and html bundle keep confusing the scopes for things and it got to be way too complicated.
enjoy.
PS: beware... there are some crazy half-baked things in there too. you might want to delete anything you don't know what is. I've also got some of my modified asp.net stuff in there too.
I should clarify:
You have to insert the cursor at the beginning of the attribute value AS OPPOSED TO being able to place the cursor ANYWHERE inside the attribute value (my ideal situation).
Thank you Thomas. This is definitely much closer to what I was hoping for. The only drawback I see at present is that you need to insert your cursor at the beginning of the attribute value you want to select before hitting END, but that's certainly acceptable for now. Hopefully I'll learn a little more about command creation in the near future and I'll be able to tweak the awesome (for me, right now) work you've done here.
use home instead
On Nov 17, 2005, at 1:46 PM, Warren Parsons wrote:
I should clarify:
You have to insert the cursor at the beginning of the attribute value AS OPPOSED TO being able to place the cursor ANYWHERE inside the attribute value (my ideal situation).
Thank you Thomas. This is definitely much closer to what I was hoping for. The only drawback I see at present is that you need to insert your cursor at the beginning of the attribute value you want to select before hitting END, but that's certainly acceptable for now. Hopefully I'll learn a little more about command creation in the near future and I'll be able to tweak the awesome (for me, right now) work you've done here.