For whatever reasons, I’m back to SSHing into my laptop via Tailscale for some quick hacking. Between neovim and tmux, it almost feels like I’m hacking locally. This has historically provided a single challenge: my Hugo web server only works on localhost and I can’t be bothered to spend the time to fix it, so I’ve been pushing blog changes without testing.
Then I started adding test coverage to markdown-novel-tools. I use coverage quite a bit to show me which lines of code still need tests, but it gives me that information in html. I tried various ways to view that html in the terminal, and failed: editing, links, and lynx. The latter two showed me the rendered page, but without color, while pytest-cov uses green and red show which lines are covered or not.
Enter chawan. Its rendering is crude compared to modern browsers, but I’m able to view the coverage html and my site on localhost just fine in the terminal over SSH.
I have yet to personalize its default keymap, but I’m able to get around well enough…Enough so that I thought it might be worth a quick blog post.