2019-08-13 VF-1 handlers

Here’s my .config/.vf1rc file:

handler text/plain mdcat %s
handler text/html lynx -force_html %s

The first line says that all text gets rendered with mdcat which is like cat except it renders Markdown. Check out mdcat on Github.

The second line says that HTML gets rendered by lynx, our favoured text browser. It opens lynx and stays there so you can browser the site on the web. It doesn’t just dump the HTML to text like the default VF-1 setup does.

For a moment I was experimenting with showing things in a second window, or a second session of my terminal, but when I tried it, I realised that I didn’t want it.

Tags:

Comments


Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. Note: in order to facilitate peer review and fight vandalism, we will store your IP number for a number of days. See Privacy Policy for more information. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.