summaryrefslogtreecommitdiff
path: root/internal/hexaiaction/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/hexaiaction/run.go')
-rw-r--r--internal/hexaiaction/run.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/hexaiaction/run.go b/internal/hexaiaction/run.go
index 0330354..92aa72d 100644
--- a/internal/hexaiaction/run.go
+++ b/internal/hexaiaction/run.go
@@ -89,6 +89,12 @@ func NewRunner() *Runner {
}
func chooseActionFromConfig(cfg appconfig.App) (actionChoice, error) {
+ // Config-driven menu takes priority when defined.
+ if len(cfg.TmuxActionMenu) > 0 {
+ kind, custom, err := RunTUIFromConfig(cfg.TmuxActionMenu, cfg.CustomActions)
+ return actionChoice{kind: kind, custom: custom}, err
+ }
+ // Default path: built-in menu, with optional custom-actions submenu.
if len(cfg.CustomActions) == 0 {
kind, err := RunTUI()
return actionChoice{kind: kind}, err