refine navigation and loading enteries
This commit is contained in:
parent
99548e67b7
commit
8414414f98
10 changed files with 148 additions and 41 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue