Open local file with URL


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

chrome ""

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 "$@")