[SVN] r3962

Allan Odgaard throw-away-1 at macromates.com
Sun Jul 2 11:32:34 UTC 2006


• if a parent view to the one from which “Edit in TM” is invoked is a WebFrameView then grab the URL from that view and use the ‘url map’ to find an extension for the temporary file given to TextMate — this allows e.g. edits initiated from gmail to use mail syntax, from macromates.com/blog/ to use Markdown, from the Quicksilver forum to use BBCode etc.

Currently the url map is only read from the bundle containing the Edit in TM input manager — it should probably also be read from somewhere under ~/Library

This hack works for both OmniWeb and Safari. Should work for all WebKit-based browsers.

Changed:
U   trunk/Tools/Edit in TextMate/Edit in TextMate.xcodeproj/project.pbxproj
U   trunk/Tools/Edit in TextMate/src/Edit in TextMate.mm
A   trunk/Tools/Edit in TextMate/url map.plist



More information about the textmate-dev mailing list