357d57c541970f59dd673df38ce166e9454c6da8

Author
Sebastian Gniazdowski <sgniazdowski@gmail.com>
Committer
Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date

Message

znt: include some status information on top of the window

Diff

 1diff --git a/plugins/zsh-navigation-tools/n-list b/plugins/zsh-navigation-tools/n-list
 2index 55c08515b853984b3610335d1a11d94cf0a0ca72..d13e048bf2c591b7081357559885279ed0600993 100644
 3--- a/plugins/zsh-navigation-tools/n-list
 4+++ b/plugins/zsh-navigation-tools/n-list
 5@@ -363,6 +363,11 @@ while (( 1 )); do
 6     fi
 7 
 8     zcurses border main
 9+
10+    local top_msg="${(C)ZSH_NAME} $ZSH_VERSION, shell level $SHLVL, $USER"
11+    zcurses move main 0 $(( term_width / 2 - $#top_msg / 2 ))
12+    zcurses string main $top_msg
13+
14     zcurses refresh main inner
15     zcurses move main $(( term_height - 1 - 1 )) $(( status_msg_strlen + 2 ))
16