refine navigation and loading enteries

This commit is contained in:
Travis Shears 2025-10-02 20:09:57 +02:00
parent 99548e67b7
commit 8414414f98
10 changed files with 148 additions and 41 deletions

View file

@ -44,7 +44,7 @@ func (m ActionListPageModel) Update(msg tea.Msg, ctx *context) (ActionListPageMo
if m.cursor < len(actions)-1 {
m.cursor++
}
case "enter", " ":
case "enter", " ", "l":
action := actions[m.cursor]
switch action {
case Write:
@ -56,7 +56,7 @@ func (m ActionListPageModel) Update(msg tea.Msg, ctx *context) (ActionListPageMo
actionToTakeCmd := func() tea.Msg {
return SelectActionToTake{ActionToTake: action}
}
loadGemLogsCmd := gemlog.LoadGemlogCMD(ctx.config)
loadGemLogsCmd := gemlog.LoadGemlogsCMD(ctx.config)
return m, tea.Batch(switchPageCmd, loadGemLogsCmd, actionToTakeCmd)
}
}