zenu

Des menus dans votre terminal - retour accueil

git clone git://bebou.netlib.re/zenu

Log | Files | Refs | README |

commit 20ece2f6a23e85a9a05aa66b1cc73a6869330dc6
parent 75b2322f526059bc9ea847ec116d82a1d9489be9
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Wed, 19 Mar 2025 15:49:37 +0100

Edition d'un menu en live

Il faut utiliser la touche "=", éditer le menu puis la recompilation se
refera toute seule

Diffstat:
MREADME | 9++++++++-
Mbin/build | 3++-
2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/README b/README @@ -130,9 +130,14 @@ The entire main menu file with an added small tutorial would be : ;; (w) zenu+ network ;; (n) vim ~p/start +'cd %:h' +'setf roguemode' +### Editing an existing menu while inside zenu + +At any moment you can press the default key `=` and edit the current menu. +Menus will be recompiled automatically. + ### Changing defaults -#### "Go up a menu" key +#### "Go up a menu" key and "edit menu" key To modify the default "go up a menu" key from enter to something else edit the case around line 26 of `bin/build`. @@ -145,6 +150,8 @@ For example, to substitute enter for both backspace and `q` ;; (\$'q') zenu-- ... +The editing key `=` can be changed in a similar way. + #### Activator key declarator To modify which character has to precede the activator key for a command from diff --git a/bin/build b/bin/build @@ -23,7 +23,8 @@ in (-h|help|--help) usage $( sed -En '/^## *pre */,/^##/p' "$@" ) read -sk1 zenu_key case "\$zenu_key" - in (\$'q') zenu-- + in (\$'q') zenu--;; + (=) \${EDITOR:-vim} \${0%.*};cd \${zenu_base%menus};make -B; $( sed -En '/^## *react */,/^##/p' "$@" ) esac 2> \$zenu_store/err %