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
+6 -2
View File
@@ -40,8 +40,12 @@ func TestTemplateMarkdownPreviewDraftAndKeyboardScope(t *testing.T) {
m = press(m, "v")
updated, cmd := m.updateTemplates(tea.KeyMsg{Type: tea.KeyEnter})
m = updated.(Model)
if cmd == nil {
t.Fatal("template should launch authoring directly")
if cmd == nil || !m.editorOpen || !m.editorDraft.createOnly || m.editorDraft.source != m.templates[m.templateIndex].Source {
t.Fatal("template should offer an editor without losing the selected source")
}
m = press(m, "esc")
if m.editorOpen || !m.templateOpen {
t.Fatal("canceling editor picker should return to template gallery")
}
m = press(m, "esc")
if m.templateOpen {