From 14eba4708b51d4aeda98f40fa158f4688cb4ff8f Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 28 Oct 2022 20:26:49 +0800 Subject: Parse JSON in mailcap --- mutt/mailcap | 1 + 1 file changed, 1 insertion(+) (limited to 'mutt/mailcap') diff --git a/mutt/mailcap b/mutt/mailcap index 04fb49f..e7e7ff3 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,6 +1,7 @@ text/html; firefox '%s' &; test=test -n "$DISPLAY"; needsterminal; text/html; w3m -I %{charset} -T text/html; copiousoutput; text/plain; less -N %s; copiousoutput; +application/json; jq . %s | less -N; copiousoutput; application/pdf; firefox '%s' application/zip; unzip -p '%s' | less -N image/png; feh '%s' -- cgit v1.2.3-70-g09d2