From 96a923876be4e5bc6237e20ff62e4cf9bb5eb815 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 26 Sep 2022 00:47:59 +0800 Subject: Quick open html file in mutt --- mutt/default | 1 + mutt/mailcap | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'mutt') diff --git a/mutt/default b/mutt/default index ac57ddf..688932d 100644 --- a/mutt/default +++ b/mutt/default @@ -29,6 +29,7 @@ alternative_order text/plain text/enriched text/html auto_view text/html # Macro to open html with css #macro index,pager h "htmail-decode" "render html mail using htmail-view" +macro pager h "v/htmlxq" "Open html file" # Vim-style key binding, \c means Ctrl # ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim风格键位绑定 diff --git a/mutt/mailcap b/mutt/mailcap index d52d2ae..f6d8e0d 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,2 +1,2 @@ -text/html; xdg-open '%s' &; test=test -n "$DISPLAY"; needsterminal; +text/html; firefox '%s' &; test=test -n "$DISPLAY"; needsterminal; text/html; w3m -I %{charset} -T text/html; copiousoutput; -- cgit v1.2.3-70-g09d2