-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can't be used as external editor in nvAlt #54
Comments
I’m not familiar with nvALT, but at least TextEdit doesn’t work for me. Maybe my configuration is off? Not sure how this works internally for nvALT, but I’ll look into it when I can. |
TextEdit doesn't bind with .md extension, so can't open these markdown On 7/9/14, Tzu-ping Chung notifications@github.com wrote:
|
OS X uses UTIs instead of extensions to detect file formats, so extensions shouldn’t matter. TextEdit registers itself to public.data, which text formats should conform to, so it is strange to see that it it considered not able to open anything. MacDown does the same thing. Anyway, I should probably ask the developer of nvALT how exactly I can approach this. |
Well in my nvALT, TextEdit is able to open .txt file and other not registered plain text filetype. By the way, in nvALT preference |
I’ve talked to the developers of nvALT, and they are not sure where the problems, either. According to them there have been similar reports from other editor apps, too. My current guess is that nvALT is not configured to accept editors that don’t target rich text formats. Which is plausible, since they inherited that part of code from the original nv, which is a rich text editor in essence, without much change. I’ll try to poke around inside nvALT’s source and see what I can find to confirm/reject this. |
Alright, here’s the result. nvALT (actually nv) is pretty picky when it decides whether an application can handle a certain type of document. In order to become usable as an external editor you need to declare yourself capable of writing to a file type (in this case UTI I’ve loosen the restriction to make MacDown capable of being an editor (instead of viewer) to |
Try the new one and it works well with .md and .txt filetype. Nice job! However, other plain text file with custom extension name still can't be open with MacDown while Mou can:< As a Would you please do some extra work to expand the support to all native plain text? |
To make arbitrary extensions work I’ll need to claim editor to all file formats, and I don’t really want to do that. nv doesn’t do a very good job setting appropriate UTIs when it saves things, and I think this should be fixed there instead. Maybe I’ll look into this problem when I get the time, but the bottom line is that the problem now belongs to nv (and nvALT), not MacDown. |
Added MacDown in nvALT's
edit with
list, but it seems unable to active either in app menu or context menu while other editors works well.The text was updated successfully, but these errors were encountered: