feat(menu): search options and applications from the main menu

The main menu opens with a search that finds an option of ProxMenux, an application of the OCI catalog or a Helper-Script by its name or by related words, in that order, and by category after the names.

Every result opens what its name says and nothing is run by the search itself: a script starts at its first screen, an application opens its page, an option of the post-install or a system utility opens its list with it marked, and an option that lives inside a menu is opened by that menu, which stays behind it.

The menus take the option to open as an argument and behave as before without one. The Helper-Scripts catalog is kept on the host and refreshed once a day. The main menu, the lists of OCI manager and the Helper-Scripts menu share the same height.
This commit is contained in:
MacRimi
2026-10-11 13:26:23 +02:00
parent 8b8fed2564
commit 0fd3be15c1
16 changed files with 1219 additions and 42 deletions
+18
View File
@@ -1077,7 +1077,25 @@ show_tools_commands() {
# ===============================================================
# Help and Info Menu
# ===============================================================
# A section given as argument, as the menu search does, is opened first.
PRESELECTED_OPTION="${1:-}"
while true; do
if [[ "$PRESELECTED_OPTION" =~ ^[1-9]$ ]]; then
OPTION="$PRESELECTED_OPTION"
PRESELECTED_OPTION=""
case $OPTION in
1) show_system_commands ;;
2) show_vm_ct_commands ;;
3) show_storage_commands ;;
4) show_network_commands ;;
5) show_update_commands ;;
6) show_gpu_commands ;;
7) show_zfs_commands ;;
8) show_backup_commands ;;
9) show_tools_commands ;;
esac
continue
fi
OPTION=$(dialog --stdout \
--title "$(translate 'Help and Info')" \
--menu "$(translate 'Select a category of useful commands:')" 20 70 9 \