How to Use FZF to make Chrome a great Markdown Reader

The aim of this pagešŸ“ is to share the hack for quickly opening markdown files with images and formatting in Chrome

since it cannot be rendered in Windows Terminal, I go for this workaround…
  1. Install Markdown Viewer
  2. Install fzf, ideally also see https://andrew-quinn.me/fzf/
  3. Put the following into your terminal profile — I’m on Windows and use PowerShell, but ideally this should work cross-platform with a bit of tweaking
function chf {chrome $PWD/$(fzf)}

In terminal just run chf ⟹ select a file ⟹ it opens in Chrome immediatelly properly rendered by Markdown Viewer

LINKS

Pavol Kutaj

Today I Learnt | Infrastructure Support Engineer at snowplow.io with a passion for cloud infrastructure/terraform/python/docs. More at https://pavol.kutaj.com

Recommended from Medium

Lists

See more recommendations