Filetype fail: just default to markdown....
Hi,
Tried to view an unsaved file fro textmate and got the big red
X.
My suggestion is just show anything that is not recognised as text or as markdown. Or throw a choice dropdown for how the user would like to interpret this (and similar files in the future)
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 02 May, 2012 03:34 PM
It does show anything that's not on a specific disallow list. What extension did this file have?
2 Posted by timothy.c.bates on 02 May, 2012 04:30 PM
no extension and no real file :-)
i had an unsaved file in textmate and this as a command:
open -a Marked.app "$TM_FILEPATH"
I incorrectly assumed that textmate must be sending a /tmp file, but I think it's just sending nothing?
need to change my command to save out the file to tmp before opening if filepath is empty
Support Staff 3 Posted by Brett on 02 May, 2012 04:54 PM
Correct. Once you save the file TM_FILEPATH should send the correct filename, but until there's an actual file there, I don't think TM_FILEPATH will send anything at all.