MCPcopy Create free account
hub / github.com/basecamp/hey-cli / HandleContentKey

Method HandleContentKey

internal/tui/mail.go:187–205  ·  view source on GitHub ↗
(msg tea.KeyPressMsg)

Source from the content-addressed store, hash-verified

185type postingActionEffect int
186
187const (
188 postingActionNone postingActionEffect = iota
189 postingActionRemove
190 postingActionSeen
191 postingActionUnseen
192 postingActionIgnore
193 postingActionStopIgnoring
194)
195
196type postingActionDoneMsg struct {
197 action string
198 boxID int64
199 sourceKind mail.Kind
200 postingID int64
201 effect postingActionEffect
202 seen bool // the action was taken on the Previously Seen screen
203 err error
204}
205
206// postingSeenMsg reports the mark-seen that opening a thread triggers on its
207// own, as the web app does out of band once it has rendered the topic.
208type postingSeenMsg struct {

Callers

nothing calls this directly

Calls 6

openSelectedMethod · 0.95
handlePostingActionMethod · 0.95
moveUpMethod · 0.80
moveDownMethod · 0.80
StringMethod · 0.80
UpdateMethod · 0.65

Tested by

no test coverage detected