Filetype fail: just default to markdown....

timothy.c.bates's Avatar


02 May, 2012 02:48 PM

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)

  1. Support Staff 1 Posted by Brett on 02 May, 2012 03:34 PM

    Brett's Avatar

    It does show anything that's not on a specific disallow list. What extension did this file have?

  2. 2 Posted by timothy.c.bates on 02 May, 2012 04:30 PM

    timothy.c.bates's Avatar

    no extension and no real file :-)

    i had an unsaved file in textmate and this as a command:

    open -a "$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

  3. Support Staff 3 Posted by Brett on 02 May, 2012 04:54 PM

    Brett's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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