feat(tui): configurable keybinds and mouse scroll

This commit is contained in:
adamdottv
2025-06-18 13:56:46 -05:00
parent d4157d9a96
commit bd46cf0f86
19 changed files with 1276 additions and 853 deletions

View File

@@ -11,9 +11,7 @@ type Container interface {
tea.ViewModel
Sizeable
Focusable
MaxWidth() int
Alignment() lipgloss.Position
GetPosition() (x, y int)
Alignable
}
type container struct {
@@ -185,6 +183,11 @@ func (c *container) GetPosition() (x, y int) {
return c.x, c.y
}
func (c *container) SetPosition(x, y int) {
c.x = x
c.y = y
}
type ContainerOption func(*container)
func NewContainer(content tea.ViewModel, options ...ContainerOption) Container {