feat: add navigation and window size handlers with corresponding tests

This commit is contained in:
Stevan Freeborn
2025-12-29 13:45:28 -06:00
parent 3bc730db87
commit 3d3877ca41
17 changed files with 1012 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package handlers
import (
"github.com/StevanFreeborn/term-tier/internal/state"
tea "github.com/charmbracelet/bubbletea"
)
type WinSizeMsgHandler interface {
Match(s state.State, msg tea.WindowSizeMsg) bool
Handle(s state.State, msg tea.WindowSizeMsg) tea.Cmd
}
func GetAllWinSizeHandlers() []WinSizeMsgHandler {
return []WinSizeMsgHandler{
NewTrackWindowSizeHandler(),
}
}