| 1 | package tui |
| 2 | |
| 3 | // StatusMsg is a transient toast-style status surfaced by Update. |
| 4 | type StatusMsg struct { |
| 5 | Text string |
| 6 | OK bool |
| 7 | } |
| 8 | |
| 9 | // ClearStatusMsg removes the active status message. |
| 10 | type ClearStatusMsg struct{} |
| 11 | |
| 12 | // EditorFinishedMsg is delivered after an external $EDITOR session ends. |
| 13 | // Tag is an opaque identifier supplied by the caller (commonly a record's |
| 14 | // short id) so the receiver can correlate the result. |
| 15 | type EditorFinishedMsg struct { |
| 16 | Tag string |
| 17 | Content string |
| 18 | Err error |
| 19 | } |