avicennax / mdv

A janky little markdown viewer.
Apache License 2.0
0 stars 0 forks source link

Command line arguments sample #1

Open tyeeman opened 1 year ago

tyeeman commented 1 year ago

I would like to try this. Can you provide a sample command line with arguments?

Update - I added markdown filename to command line and got this error, even though pandoc.exe is in my path -

mdv August-2022.md
55318978cb577d76d25d93f9982a2b2c
CSS file: '.pandoc/default.css' not found
Updating cache ...
2022/12/28 21:05:59 exec: "open": executable file not found in %PATH%

I guess this may not work in Windows? I also noticed there was a 2GB file generated related to badger. Is this correct?

avicennax commented 1 year ago

This absolutely not battle hardened and really should be a private repo ... I've only developed and used the binary on Mac. Using a locally built binary via go build I run:

$ mdv README.md
da284b2c5e649debde048526fdf6c369
Cache hit.

Which opens the file in Chrome (default application for opening HTML for me). Furthermore, my BadgerDB files are a couple KBs.

If you're on Windows I'd say all bets are off. But If you're up for making it work on Windows I'm happy to work with you and integrate those changes.