Introduce ANMHI_SCAN_LINES (used by tanmhi) and document it in README - 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 0ec1ffaba4a2ec2109c73ae8687b56f13b360c7d
(DIR) parent 9c0587cf201e5399ddd3a0397dc465065ee6f6db
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 3 Jul 2018 14:16:10
Introduce ANMHI_SCAN_LINES (used by tanmhi) and document it in README
Diffstat:
README | 2 ++
tanmhi | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff -r 9c0587cf201e -r 0ec1ffaba4a2 README
--- a/README Tue Jul 03 14:12:38 2018 +0200
+++ b/README Tue Jul 03 14:16:10 2018 +0200
@@ -25,6 +25,8 @@
action (by default `marked')
- ANMHI_MENU_TOOL: tool used for menus, should support an `-l' option to
specify the number of lines (by default `fzy')
+ - ANMHI_SCAN_LINES: number of line used reserved for anmhi-scan pane when
+ anmhi is invoked via tanmhi (by default `10').
- ANMHI_SCAN_MESSAGES: number of messages used for the `L' action to
show last `2n + 1' messages (by default `100')
- ANMHI_SEQUENCES: file name used to temporary store current user defined
diff -r 9c0587cf201e -r 0ec1ffaba4a2 tanmhi
--- a/tanmhi Tue Jul 03 14:12:38 2018 +0200
+++ b/tanmhi Tue Jul 03 14:16:10 2018 +0200
@@ -27,11 +27,14 @@
# POSSIBILITY OF SUCH DAMAGE.
#
+: ${ANMHI_SCAN_LINES:=10}
+
+anmhi_scan_lines="${ANMHI_SCAN_LINES}"
#
# Split current tmux window and run `anmhi-scan' on the top and `anmhi' on the
# rest of the window.
#
-tmux split-window -bd -t:.0 -v -l 10 "anmhi-scan ; $SHELL"
+tmux split-window -bd -t:.0 -v -l "${ANMHI_SCAN_LINES}" "anmhi-scan ; $SHELL"
tmux rename-window 'mail'
exec anmhi