How ricardosuman/omarchy-menu-calc works
Menu Calc is a forked Omarchy menu that adds inline arithmetic and editable search text. The documented workflow is to type an expression, see its result at the top of the menu, then press Enter to copy it and close the menu. Invalid expressions leave ordinary app search unchanged. README documents these behaviors, but the sampled source does not show the QML wiring, so only the documented connections are shown.
Main entry points: Menu.qml Omarchy menu · Calc.js Expression evaluator · MenuModel.js Menu model
Components 5
Menu interaction
- Omarchy menu
Menu.qml - Menu model
MenuModel.js
Calculation
- Expression evaluator
Calc.js
Other components
- Menu user
- wl-copy
Connections 6
- Menu user → Omarchy menu: types query
- Omarchy menu → Expression evaluator: evaluates expression
- Expression evaluator → Omarchy menu: returns result
- Omarchy menu → Menu model: searches menu
- Omarchy menu → wl-copy: copies on Enter
- Omarchy menu → Menu user: shows result