Introduce ${anmhi_menu_tool} instead of hardcoding fzy - anmhi - nmh(7) interface that (ab)uses less, lesskey, tmux and entr
(HTM) hg clone https://bitbucket.org/iamleot/anmhi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset cc4b1db46579f60fc365740645442eefe215a873
(DIR) parent fad295e99d091aeaf63dd8eb3551af032f33586c
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 3 Jul 2018 13:48:03
Introduce ${anmhi_menu_tool} instead of hardcoding fzy
(...the `-l' option is still hardcoded though!)
Diffstat:
TODO | 2 --
anmhi | 9 +++++----
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff -r fad295e99d09 -r cc4b1db46579 TODO
--- a/TODO Tue Jul 03 13:41:11 2018 +0200
+++ b/TODO Tue Jul 03 13:48:03 2018 +0200
@@ -2,5 +2,3 @@
-----
- Honors possible all-uppercase environment variables to set the
lower-case ones locally used by anmhi
-- Make the `fzy' dependency configurable via a variable (e.g. `dmenu'
- can be used instead.)
diff -r fad295e99d09 -r cc4b1db46579 anmhi
--- a/anmhi Tue Jul 03 13:41:11 2018 +0200
+++ b/anmhi Tue Jul 03 13:48:03 2018 +0200
@@ -30,12 +30,13 @@
: ${MHTMPDIR:=/tmp}
anmhi_lesskey="$(mhpath +)/.lesskey"
+anmhi_lines=$(stty size | cut -d ' ' -f 1)
anmhi_mark_sequence="marked"
-anmhi_unseen_sequence="$(mhparam unseen-sequence)"
-anmhi_sequences=".mhcurseqs"
+anmhi_menu_tool="fzy"
anmhi_scan_format='%<(cur)>%| %>%6(msg) %<(mymbox{from})%<{to}To: %13(unquote(decode(friendly{to})))%>%>%<(zero)%17(unquote(decode(friendly{from})))%> %3(day{date}) %3(month{date}) %02(mday{date}) %02(hour{date}):%02(min{date}) %(decode{subject})'
anmhi_scan_messages="100"
-anmhi_lines=$(stty size | cut -d ' ' -f 1)
+anmhi_sequences=".mhcurseqs"
+anmhi_unseen_sequence="$(mhparam unseen-sequence)"
#
@@ -206,7 +207,7 @@
anmhi_menu()
{
- fzy -l "${anmhi_lines}"
+ ${anmhi_menu_tool} -l "${anmhi_lines}"
}
#