From 3c81bbd229bb338addb49b34031e96abcddbbfd0 Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Thu, 8 Jan 2026 02:01:54 -0500 Subject: Clear screen after adding to Anki --- main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index d5900b7..b404a30 100644 --- a/main.go +++ b/main.go @@ -98,6 +98,10 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil case wordAddedMsg: m.wordAddStatus = fmt.Sprintf("✅ Added '%s' to Anki", string(msg)) + m.currentWord = "" + m.currentDefinition = "" + m.wordInput.SetValue("") + m.vp.SetContent("") m.err = nil case tea.KeyMsg: switch msg.Type { -- cgit v1.2.3