wikimatze/hammer.vim

Plain .html files do not render on Linux

trinitronx opened this issue · 0 comments

On linux, it looks like plain .html files do not render correctly. Looks like the GitHub::Markup.render command is calling Hammer::ENV.browser via the command specified in html_renderer.rb, which on Linux just outputs:

xdg-open - opens a file or URL in the user's preferred application Synopsis xdg-open { file | URL } xdg-open { --help | --manual | --version } Use 'man xdg-open' or 'xdg-open --manual' for additional info.

Then it renders in tilt, and opens the browser with the above help text for xdg-open.

Steps to reproduce:

  1. Open plain .html file in vim
  2. Run :Hammer
  3. Output in browser is help text for xdg-open