I may just be being a berk here, but I don't seem to be able to get the URL associations to play ball. I'm editing text in three different wikis, each with a different format. My config looks like this:
{ URLAssociations = { 'mail.google.com/' = 'mail'; 'macromates.com/blog/' = 'markdown'; 'blacktree.cocoaforge.com/forums/' = 'bbcode'; 'trac.' = 'trac'; 'wiki.' = 'twiki'; 'doe.caribou.lan' = 'markdown'; }; }
Whenever I edit the contents of a textarea in TM it's opened into a file named title-of-page.safari. I consequently need to manually switch the syntax highlighting. Is there something wrong with my config?
I've restarted TM and Safari, to no effect. Do I need to prod something else to get the input manager to take notice of changes to the plist file? I'm using the Safari beta (3.0.2).
On a related note, can you use regular expressions in the URLAssociations setup, or do you have to specify an exact match?
Cheers,
Graham
On 1. Aug 2007, at 09:15, Graham Ashton wrote:
I may just be being a berk here, but I don't seem to be able to get the URL associations to play ball. I'm editing text in three different wikis, each with a different format [...]
Are you using Safari 3? I believe this feature broke with the updated WebKit (and custom text fields).
It’s not that much trouble to fix it, just haven’t really looked at it yet. I am surprised to learn people actually use this feature :)
[...] On a related note, can you use regular expressions in the URLAssociations setup, or do you have to specify an exact match?
No regular expressions, it’s presently a substring match, since Cocoa doesn’t have regexp support. That is, we could enhance it to use NSPredicate’s MATCHES operator -- this does require some other definition of ranking though. Maybe it should just be the first match which wins.
On 8/3/07, Allan Odgaard throw-away-1@macromates.com wrote: (...) I am surprised to learn people actually use this feature :)
Wow! Just so you know, I use it all the time. In fact, I don't have to "use" it, as it does its magic all alone now.
-- FredB
On 8/3/07, Allan Odgaard throw-away-1@macromates.com wrote:
I am surprised to learn people actually use this feature :)
I can't live without it : )
Actually, I went back to Safari 2.0 just to be able to use it reliably. I *really* hope it's fixed once Safari 3 goes final...
On 03/08/07, Allan Odgaard throw-away-1@macromates.com wrote:
On 1. Aug 2007, at 09:15, Graham Ashton wrote:
I don't seem to be able to get the URL associations to play ball.
Are you using Safari 3? I believe this feature broke with the updated WebKit (and custom text fields).
Yep, Safari 3. I'd love to be able to use it as I have to edit lots of different formats, but I'd never noticed it when I was using Safari 2, so at least I didn't disappointed when S3 broke it!
Cheers,
Graham