Open local file with URL


#1

Hi!
Is there a way to start editing a local markdown file from the command line? e.g.

chrome "https://stackedit.io/app?open=file://~/my-file.md"

Ultimately I’d really like to be able to set an environment variable like $VISUAL or $EDITOR to something along the lines of the following to be able to use your editor for git commit and other similar scenarios:

export VISUAL=$(chrome "https://stackedit.io/app?open=file://$@")