From e2d0f3e9970482884230e1e0461de489d1386f38 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Wed, 20 May 2026 10:34:09 -0400 Subject: [PATCH] fix(tui): add $VISUAL fallback for editor resolution Check $EDITOR, then $VISUAL, then fall back to vi. --- internal/tui/commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/tui/commands.go b/internal/tui/commands.go index d916465..5e930f7 100644 --- a/internal/tui/commands.go +++ b/internal/tui/commands.go @@ -181,6 +181,9 @@ func loadTags(store *db.Store) tea.Cmd { func editInEditor(store *db.Store, e *db.Entity) tea.Cmd { editorEnv := os.Getenv("EDITOR") + if editorEnv == "" { + editorEnv = os.Getenv("VISUAL") + } if editorEnv == "" { editorEnv = "vi" }