Offer nvim or OpenCode when creating a pipeline
This commit is contained in:
@@ -89,7 +89,7 @@ func (m Model) updateTemplates(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
m.templateTop = len(m.templateLines)
|
||||
case "enter":
|
||||
if len(m.templates) > 0 {
|
||||
return m, editDraftMode("", m.templates[m.templateIndex].Source, true, true, draft.Draft{Server: m.url})
|
||||
return m.newPipeline(m.templates[m.templateIndex].Source)
|
||||
}
|
||||
}
|
||||
m.templateTop = max(0, min(m.templateTop, max(0, len(m.templateLines)-max(1, m.height-10))))
|
||||
|
||||
Reference in New Issue
Block a user