diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-09 14:45:51 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-09 14:46:11 -0500 |
| commit | cd06a27e20717cdfbcc6840328f67405acc7c9e7 (patch) | |
| tree | 9cc2e9c67c749f4a9e263d586a244b7e7746b5fd /client/window/window.go | |
| parent | dc957f6bb77c9d89b52f22b605f79f7be110f546 (diff) | |
jump to message
Diffstat (limited to 'client/window/window.go')
| -rw-r--r-- | client/window/window.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/window/window.go b/client/window/window.go index 80777cc..c768da9 100644 --- a/client/window/window.go +++ b/client/window/window.go @@ -15,6 +15,7 @@ type Window interface { Kill() Buffer() *buffer.Buffer ShowComposingReply() + OnNavigate() } type Prompt interface { @@ -49,6 +50,12 @@ func (wc *WindowCache) Get(l Location) Window { return wc.windows[l] } +func (wc *WindowCache) ForAll(do func(Window)) { + for _, window := range wc.windows { + do(window) + } +} + type DefaultWindow struct { In tui.TextInput Buf buffer.Buffer @@ -73,3 +80,5 @@ func (w *DefaultWindow) Send(text string) {} func (w *DefaultWindow) ShowStatusLine() {} func (w *DefaultWindow) ShowComposingReply() {} + +func (w *DefaultWindow) OnNavigate() {} |
