sbarex / QLMarkdown

macOS Quick Look extension for Markdown files.
GNU General Public License v3.0
1.36k stars 33 forks source link

The settings panel/editor doesn't open files thrown at it by the OS #93

Closed bvandergiessen closed 2 years ago

bvandergiessen commented 2 years ago

Thanks for this wonderful tool. I installed it for its QuickLook plugin, but actually the "Settings" editor itself is quite good and renders beautifully. Its exported HTML works very well in the browser.

Obviously it is meant as a settings panel, not an editor, but... why not add a menu item to save the Markdown file.

Probably for the same reason of not being meant as an editor, there is something strange about the opening of files. With +O, any Markdown file can be opened in the editor. But when macOS tells the editor to open a file (e.g. from Open With... in the context menu, or from Terminal with open -a QLMarkdown README.md) the editor starts, but it gives this error message:

The document README.md could not be opened. QLMarkdown cannot open files in the Markdown Text format.

The document "README.md" could not be opened. QLMarkdown cannot open files in the "Markdown Text" format.

I don't know what is meant by that – in the first place, the file opens just fine when opened with +O, and in the second place, I don't think "Markdown text" is anything other than Markdown, right?

Anyway, I hope you find this of interest to worry about.

Details: QLMarkdown 1.0.10 (35), macOS 12.1 on a MacBook with Apple Silicon.

sbarex commented 2 years ago

I have implemented this behavior on the release 1.0.11 (36).