MohamedElashri / Snibox

Snibox selfhosted snippet, an sqlite version
15 stars 1 forks source link

Specifying the extension of a file should auto-select the language #7

Open rounakdatta opened 1 year ago

rounakdatta commented 1 year ago

Often I find myself naming the file with the correct extension when creating a snippet. For example I name the file as example_script.sh, it would ideally be great if the language was auto-selected as Bash. I think the "Automatically" language field should take care of that post-saving, but the point is about pre-saving formatting/linting. Unless that language field is correctly set, the text wouldn't be rightly formatted the first time while creating the snippet.

Should we build out this feature?