diff --git a/app/menu.go b/app/menu.go index 44e1009..1bcd409 100644 --- a/app/menu.go +++ b/app/menu.go @@ -119,7 +119,7 @@ func newFeels(state *ui.State) { vt.TERM = os.Getenv("TERM") vt.Attach(state.PostEvent()) vt.Focus() - err := vt.Start(exec.Command(os.Getenv("EDITOR"), path.Join(os.Getenv("HOME"), ".ttbp/entries", time.Now().Format("20060102")+".txt"))) + err := vt.Start(exec.Command(os.ExpandEnv(os.Getenv("EDITOR")), path.Join(os.Getenv("HOME"), ".ttbp/entries", time.Now().Format("20060102")+".txt"))) if err != nil { panic(err) }