fix: rename the quit keybind (#40)

drew created

Change summary

tui/choice.go | 2 +-
tui/inbox.go  | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)

Detailed changes

tui/choice.go 🔗

@@ -84,7 +84,7 @@ func (m Choice) View() string {
 	}
 
 	b.WriteString("\n\n")
-	b.WriteString(helpStyle.Render("Use ↑/↓ to navigate, enter to select, and q to quit."))
+	b.WriteString(helpStyle.Render("Use ↑/↓ to navigate, enter to select, and ctrl+c to quit."))
 
 	return docStyle.Render(b.String())
 }

tui/inbox.go 🔗

@@ -78,9 +78,12 @@ func NewInbox(emails []fetcher.Email) *Inbox {
 		return []key.Binding{
 			key.NewBinding(key.WithKeys("d"), key.WithHelp("d", "delete")),
 			key.NewBinding(key.WithKeys("a"), key.WithHelp("a", "archive")),
+			key.NewBinding(key.WithKeys("ctrl+c"), key.WithHelp("ctrl + c", "quit")),
 		}
 	}
 
+	l.KeyMap.Quit.SetEnabled(false)
+
 	return &Inbox{
 		list:        l,
 		isFetching:  false,