enola-dev / enola

Enola 🕵🏾‍♀️ Holmes was an SRE.
https://docs.enola.dev/
Apache License 2.0
15 stars 5 forks source link

Browser TUI ("Gopher") #112

Open vorburger opened 1 year ago

vorburger commented 1 year ago

HTTP Server (basis for future #76 Web UI) serving MD instead of HTML to https://github.com/charmbracelet/glow!

E.g. glow https://raw.githubusercontent.com/enola-dev/enola/main/README.md (but dynamic, for all Entity).

Should eventually also be integrated (❓) with #100 Shell.

mind-blown

vorburger commented 1 year ago

Actually, on very briefly testing glow just to get a feeling for how feasible this could be, I found that it does not (yet) support "browsing" (navigating) - only "paging". (It also does not support external hyperlinks and it's a ugly how it renders link path inline.)

There are other "Markdown CLI TUI Browsers", of course; from quick research, I've found (probably not exhaustive):

The same idea could also be explored with something non-Markdown:

vorburger commented 1 year ago

mdcat also does not (yet) have a "browse" mode either.

Next step would be to try out one of those Node.JS-based thingies (msee? terminal_markdown_viewer#alternatives ?).

The Gemini stuff also looks "fun", e.g. with amfora.

But HTML for Lynx likely best next.