RobinKnipe / accessibility-statement-generator

MIT License
2 stars 0 forks source link

Add note to README to set default editor #19

Open davivid opened 4 years ago

davivid commented 4 years ago

Set the default editor to something else other than Vim

export VISUAL=not-vim export EDITOR=not-vim

RobinKnipe commented 4 years ago

This could be a suitable visual editor for markdown: https://wereturtle.github.io/ghostwriter/ It has versions for Windows/Mac/Linux and installation instructions from the github project. I looked at trying to use a web-based editor through the browser (so nothing needed installing), but sadly I don't think that's quite possible :disappointed:

davivid commented 4 years ago

Now that's a nice idea. What difficulties did you see with a browser-based solution?

RobinKnipe commented 4 years ago

As far as I see it there 2 or 3 things that a browser based solution MUST be able to do:

  1. accept a file URI as a query parameter to the app URL - e.g. https://stackedit.io/app?open=file://~/my-file.md
  2. be able to save to disk - so in the above example, write back to ~/my-file.md
  3. after saving, a close/done signal would need to be sent, so the calling script knows the editing has finished

I found stackedit looked good for .md files, but I don't think they have point 1., they can do 2., and 3. depends on 1., so who knows? I've asked in the help forum, but response yet... https://community.stackedit.io/t/open-local-file-with-url/1135