add page for reading a single gemlog entry

This commit is contained in:
Travis Shears 2025-10-03 12:07:48 +02:00
parent 8414414f98
commit 02ed95a612
5 changed files with 78 additions and 17 deletions

View file

@ -32,9 +32,12 @@ func (m ActionListPageModel) InitActionListPage() tea.Cmd {
return nil
}
func (m ActionListPageModel) Update(msg tea.Msg, ctx *context) (ActionListPageModel, tea.Cmd) {
func (m ActionListPageModel) Update(msg tea.Msg, active bool, ctx *context) (ActionListPageModel, tea.Cmd) {
switch msg := msg.(type) {
case tea.KeyMsg:
if !active {
return m, nil
}
switch msg.String() {
case "up", "k":
if m.cursor > 0 {