I use mutt as a mailer, and mail are edited with names like /tmp/mutt-ratagaz-501-4904-5. Is there a way to teach textmate that all file whose name matches the pattern /tmp/mutt-* must be openend with Mail bundle ?
On Jul 4, 2006, at 5:40 PM, Erwan David wrote:
I use mutt as a mailer, and mail are edited with names like /tmp/mutt-ratagaz-501-4904-5. Is there a way to teach textmate that all file whose name matches the pattern /tmp/mutt-* must be openend with Mail bundle ?
from the most recent cutting-edge release:
It is now possible to provide the extension used for the temporary file created by the Edit in TextMate input manager when the calling application is a WebKit-based browser. To configure this select Edit in TextMate URL Associations from the TextMate bundle. This will create (unless already there) and open a default mapping file which maps URL subsets to extensions. The point of this is to get the proper language chosen, e.g. ‘markdown’ for the MacroMates blog, ‘bbcode’ for the Quicksilver forum, ‘mail’ for GMail, etc.
I think that is most of the way for what you are asking, or maybe it already works.
I've decided to switch from Mail to mutt, so this would be a welcome hint on how to do this.
-- Daniel
On 4/7/2006, at 23:40, Erwan David wrote:
I use mutt as a mailer, and mail are edited with names like /tmp/mutt-ratagaz-501-4904-5. Is there a way to teach textmate that all file whose name matches the pattern /tmp/mutt-* must be openend with Mail bundle ?
Not possible, you’ll need to do a wrapper which renames the file, see e.g. [1].
[1] http://lists.macromates.com/pipermail/textmate/2005-November/ 006959.html