Files
omarchy/bin
Adam Michaels 70c0f70940 fix: implement proper hierarchical menu navigation (#1100)
* 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>
2025-09-09 20:43:26 +02:00
..
2025-08-25 12:10:41 +02:00
2025-08-25 08:26:08 +02:00
2025-08-24 18:11:59 +02:00
2025-08-27 12:14:03 +02:00
2025-08-25 12:24:51 +02:00
2025-08-03 15:30:49 +02:00
2025-08-24 17:53:42 +02:00
2025-08-24 17:53:42 +02:00
2025-08-04 20:30:00 +02:00
2025-08-10 20:12:16 +02:00
2025-07-26 16:37:49 -04:00
2025-08-31 13:46:54 +02:00