french-wiktionary-flashcards

Easily create Anki flashcards from Wiktionary data.
Log | Files | Refs | README

commit cf0c29b79fe9d2feaa6ff48445ce43dff7b9b15b
parent 32acf8c4940b5e7088b0651d5e7ea480afee9e7b
Author: David Schlachter <t480-debian-git@schlachter.ca>
Date:   Sun, 11 Jan 2026 13:41:43 -0500

Exit on Control-D as well as Control-C

Diffstat:
MREADME.md | 1-
Mui.go | 2+-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -86,7 +86,6 @@ Usage of french-wiktionary-flashcards: - Include context hints (e.g. see entry for 'panais', which has "Agriculture", "Par métonomie", etc) in definitions; and maybe the "singular and plural" box as well -- Control-D should exit too - allow setting the language for initial processing, so that we could support languages other than French - general code cleanup & organization diff --git a/ui.go b/ui.go @@ -138,7 +138,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.vp.SetContent(formatDefinitionForDisplay(m.p, m.currentDefinition, m.vp.Width)) case tea.KeyMsg: switch msg.Type { - case tea.KeyCtrlC: + case tea.KeyCtrlC, tea.KeyCtrlD: return m, tea.Quit case tea.KeyEsc: m.currentWord = ""