Thanks for your reply Jacob. I guess my list was just nice to have type things that would make it easier for people to migrate to Textmate from other HTML coding apps. There are a lot of great things about Textmate, just a few things that need a bit of getting used to.
- Can it auto close the tag when you hit the closing bracket? It
would need to be sophisticated enough to know when NOT to close a tag, say if you had an IMG for instance.
As mentioned, ⌃> does this now.
- Can we make the tab key indent text, instead of ALT + TAB? Might not
be possible, just worth a check!
What's the benefit? Just use ⌘] or ⌥⇥
Just on those two, I think most HTML editors use the shortcuts mentioned above and probably the most painful thing when you migrate is trying to get used to a whole new group of shortcuts. I think the ⌃> works better in some ways for closing tags as you don't have to tab back in to add an ID or class to a DIV you just closed. The ⌘] or ⌥⇥ shortcut is a pain for indenting though and I still hit TAB everytime and delete my text. These are only small things, but when using on a day to day basis can be annoying.
- I keep whinging about code coloring and I know it's not the end of
the world, but the ability to target specific tags in your color theme would be great!
Yes, this will be possible as soon as someone makes a new HTML grammar. Feel free to do it if you have the time. Otherwise Infin has been saying he'd do it sometime for the last year…
I did try and target specific tags in the theme, I played around with it for a while, but couldn't get anywhere. If I knew how to do it, I would do it myself!
- Special Characters, is there any way to go through the document and
replace or find them all automatically? That would be handy.
Yes, sure. What exactly do you want it to do?
This would be some kind of button/command where you could click the button and it would go through all text and replace the invalid characters with character entities (according to the doctype). So for eg; in an XTHML doc it would replace a £ with £ It may be worth having a sub-function where it goes through them one by one, like a spell checker, in case there are conflicts.
- It would be nice to be able to target certain types of files in the
search and replace.
This won't really be possible until TM 2.0, AFAIK.
I am really looking forward to TM 2.0, I find the search and replace a bit limiting at the minute. In fact, I still haven't found one that compares to Homesite.
Thanks again for all your help. Paul
On 04/08/07, Jacob Rus jacobolus@gmail.com wrote:
Paul Collins wrote:
I think it's a great idea. I think just a few more HTML friendly features would bring a lot more people over to Textmate that are currently using Dreamweaver or BBedit.
A wishlist I would think of, but not sure if possible:
- Can it auto close the tag when you hit the closing bracket? It
would need to be sophisticated enough to know when NOT to close a tag, say if you had an IMG for instance.
As mentioned, ⌃> does this now.
- For the HTML editor, would it be possible to draw up a list of the
classes in your attached stylesheet when you type CLASS=""? Same goes for ID.
yes, it would be possible.
- Can we make the tab key indent text, instead of ALT + TAB? Might not
be possible, just worth a check!
What's the benefit? Just use ⌘] or ⌥⇥
- I keep whinging about code coloring and I know it's not the end of
the world, but the ability to target specific tags in your color theme would be great!
Yes, this will be possible as soon as someone makes a new HTML grammar. Feel free to do it if you have the time. Otherwise Infin has been saying he'd do it sometime for the last year… maybe next month will be the lucky month. Maybe we should come up with some sort of monetary bounty thing to encourage people to work on such jobs--if it was worth a few pizzas, I might take a crack at it. ;)
- Special Characters, is there any way to go through the document and
replace or find them all automatically? That would be handy.
Yes, sure. What exactly do you want it to do?
- It would be nice to be able to target certain types of files in the
search and replace.
This won't really be possible until TM 2.0, AFAIK.
Of course, I have no idea what's out of the scope and what's possible for you, so apologies if I am asking too much! I have no idea how to do any of this myself either, but I'd love to help with testing if it's a help.
Pretty much all your requests are possible… they just take some work to implement. Feel free to get started any time. ;)
-Jacob
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