fix(tui): add $VISUAL fallback for editor resolution

Check $EDITOR, then $VISUAL, then fall back to vi.
This commit is contained in:
2026-05-20 10:34:09 -04:00
parent 618335513b
commit e2d0f3e997
+3
View File
@@ -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"
}