mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
* fix: implement proper hierarchical menu navigation Add intelligent exit behavior that respects menu hierarchy and direct access: **Direct Access Behavior:** - When menus are accessed via command line arguments or keybindings - Pressing Escape/Cancel exits the application completely - Example: `omarchy-menu theme` → Escape → exits completely **Hierarchical Navigation:** - When navigating through menu system (Main → Style → Theme) - Pressing Escape/Cancel returns to parent menu - Examples: - Theme menu → Style menu (not main menu) - Font menu → Style menu (not main menu) - Power menu → Setup menu (not main menu) - Update Process/Config menus → Update menu (not main menu) **Implementation:** - `DIRECT_ACCESS` global variable tracks access method - `handle_exit(parent_menu)` provides consistent behavior - Applied to theme, font, power, and update submenus - Maintains backward compatibility for all existing navigation * Naming and add to system menu too * Naming --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
15 KiB
Executable File
15 KiB
Executable File