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" }