mirror of
https://github.com/tw93/Mole.git
synced 2026-02-11 17:03:59 +00:00
Unified UI prompts for all menus
This commit is contained in:
@@ -44,7 +44,7 @@ paginated_multi_select() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local total_items=${#items[@]}
|
local total_items=${#items[@]}
|
||||||
local items_per_page=15
|
local items_per_page=10
|
||||||
local cursor_pos=0
|
local cursor_pos=0
|
||||||
local top_index=0
|
local top_index=0
|
||||||
local filter_query=""
|
local filter_query=""
|
||||||
@@ -449,7 +449,7 @@ paginated_multi_select() {
|
|||||||
if [[ "$has_metadata" == "true" ]]; then
|
if [[ "$has_metadata" == "true" ]]; then
|
||||||
# With metadata: two lines (basic + advanced)
|
# With metadata: two lines (basic + advanced)
|
||||||
local -a _segs_basic=(
|
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}Space${NC} Select"
|
||||||
"${GRAY}Enter${NC} Confirm"
|
"${GRAY}Enter${NC} Confirm"
|
||||||
"${GRAY}Q${NC} Quit"
|
"${GRAY}Q${NC} Quit"
|
||||||
@@ -464,7 +464,7 @@ paginated_multi_select() {
|
|||||||
else
|
else
|
||||||
# Without metadata: single line (basic only)
|
# Without metadata: single line (basic only)
|
||||||
local -a _segs_simple=(
|
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}Space${NC} Select"
|
||||||
"${GRAY}Enter${NC} Confirm"
|
"${GRAY}Enter${NC} Confirm"
|
||||||
"${GRAY}/${NC} Filter"
|
"${GRAY}/${NC} Filter"
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ paginated_multi_select() {
|
|||||||
|
|
||||||
# Clear any remaining lines at bottom
|
# Clear any remaining lines at bottom
|
||||||
printf "${clear_line}\n" >&2
|
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
|
# Clear one more line to ensure no artifacts
|
||||||
printf "${clear_line}" >&2
|
printf "${clear_line}" >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user