1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-05 06:48:49 +00:00

Unified UI prompts for all menus

This commit is contained in:
Tw93
2025-11-16 09:00:38 +08:00
parent d08bce1db7
commit 4c7720cb25
2 changed files with 4 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ paginated_multi_select() {
fi
local total_items=${#items[@]}
local items_per_page=15
local items_per_page=10
local cursor_pos=0
local top_index=0
local filter_query=""
@@ -449,7 +449,7 @@ paginated_multi_select() {
if [[ "$has_metadata" == "true" ]]; then
# With metadata: two lines (basic + advanced)
local -a _segs_basic=(
"${GRAY}${ICON_NAV_UP}/${ICON_NAV_DOWN}${NC} Navigate"
"${GRAY}${ICON_NAV_UP}/${ICON_NAV_DOWN}${NC} Nav"
"${GRAY}Space${NC} Select"
"${GRAY}Enter${NC} Confirm"
"${GRAY}Q${NC} Quit"
@@ -464,7 +464,7 @@ paginated_multi_select() {
else
# Without metadata: single line (basic only)
local -a _segs_simple=(
"${GRAY}${ICON_NAV_UP}/${ICON_NAV_DOWN}${NC} Navigate"
"${GRAY}${ICON_NAV_UP}/${ICON_NAV_DOWN}${NC} Nav"
"${GRAY}Space${NC} Select"
"${GRAY}Enter${NC} Confirm"
"${GRAY}/${NC} Filter"

View File

@@ -168,7 +168,7 @@ paginated_multi_select() {
# Clear any remaining lines at bottom
printf "${clear_line}\n" >&2
printf "${clear_line}${GRAY}${ICON_NAV_UP}/${ICON_NAV_DOWN}${NC} Navigate ${GRAY}|${NC} ${GRAY}Space${NC} Select ${GRAY}|${NC} ${GRAY}Enter${NC} Confirm ${GRAY}|${NC} ${GRAY}Q${NC} Quit\n" >&2
printf "${clear_line}${GRAY}${ICON_NAV_UP}/${ICON_NAV_DOWN}${NC} Nav ${GRAY}|${NC} ${GRAY}Space${NC} Select ${GRAY}|${NC} ${GRAY}Enter${NC} Confirm ${GRAY}|${NC} ${GRAY}Q${NC} Quit\n" >&2
# Clear one more line to ensure no artifacts
printf "${clear_line}" >&2