New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markoff cannot open files in the "Plain Text" format #4
Comments
+1, would be good fix. |
Quick fix is in #20 and will allow attempting to open any arbitrary filetype. |
@sharplet What would you expect when opening a .txt file? Be treated as if it was a Markdown file? |
Yes, more or less. I find it doesn't matter if it's not actually a markdown file and produces strange markup. It's helpful to have the flexibility to preview any plain text file. |
Lots of markdown files have other extensions, e.g., chained through other processors. For example my file.html.md.erb is a typical static site generator markdown file. |
@balthisar I have concerns about allowing any extension though. Will force us to handle errors and whatnot and it's not user-friendly when all files can be opened but only few will yield results. |
I could help take a look at this. As-is if I (for example) try to drag an image while allowing any file, it shows an appropriate warning (unable to parse the file). To be more fancy you could tweak the I notice right now the existing entry uses The "modern" replacement is Then it's a decision on which UTI's to support. Using John Gruber has even indicated a preferred UTI for Markdown (UTIs aren't limited to Apple's system UTIs).
So there's good support for arguing |
+1 The files in which I use markdown syntax are often |
I also hit this problem when trying to open Markdown files from Jekyll that I save as |
@nickdunn Have you opened up those |
Yes, fine in Mou. They are just markdown (with a tiny bit of embedded ruby) but saved as |
How do the Ruby code and erb tags look in the markdown? Like like plain
|
Something simple like:
Markoff renders the ERB as plain text as expected in this example. I'm not expecting Markoff to deal with this gracefully, but I'd like to be able to view the file as-is while editing the plain text parts. |
I absolutely agree. Sorry for the tangent :) On Fri, Mar 11, 2016 at 9:55 AM Nick Dunn notifications@github.com wrote:
|
- Using LSItemContentTypes instead of CFBundleTypeOSTypes - Closes #4
:) |
To be honest, I just find this kind of amusing!
¯_(ツ)_/¯
Any files with the extension
.txt
are greyed-out in the file chooser, and I got this error usingopen -a Markoff foo.txt
.The text was updated successfully, but these errors were encountered: