Offer nvim or OpenCode when creating a pipeline

This commit is contained in:
2026-10-09 20:53:00 +01:00
parent a50e8648f6
commit dd50344170
10 changed files with 102 additions and 16 deletions
+1 -1
View File
@@ -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))))