brrd / abricotine

Markdown editor with inline preview
GNU General Public License v3.0
2.63k stars 156 forks source link

Abricotine is the default editor for unexpected file types #239

Closed ayaankazerouni closed 2 years ago

ayaankazerouni commented 6 years ago

This may not be an Abricotine issue specifically, so maybe this is not the right place.

When I open certain files, they open in Abricotine by default, even though they are not Markdown files (js, java, json). The issue is that Abricotine has somehow taken highest priority as a "text-editor" as opposed to being a "Markdown editor", and I have to manually set the default editor for these filetypes. This is not ideal.

I'm not certain how to address this, both on my own system, and in the Abricotine settings.

brrd commented 6 years ago

What is your OS?

ayaankazerouni commented 6 years ago

I only see this on Ubuntu 16.04, not on macOS High Sierra. On my Mac, those files default to VS Code (without requiring me to do anything manually).

EDIT: Note that VS Code is also installed on my Ubuntu machine, but it is ignored in favour of Abricotine.

brrd commented 6 years ago

Not sure it is related to Abricotine, maybe it comes from https://github.com/unindented/electron-installer-debian/

Abricotine is supposed to be associated to markdown files only. See: https://github.com/brrd/Abricotine/blob/970a66460353023a46e0e071bdf23daa807c9335/scripts/deb.js#L17

This issue needs further investigation...