Offer nvim or OpenCode when creating a pipeline
This commit is contained in:
@@ -194,13 +194,7 @@ func (m Model) editPipeline() (tea.Model, tea.Cmd) {
|
||||
m.appendLine("submission already in progress")
|
||||
return m, nil
|
||||
}
|
||||
m.editorOpen = true
|
||||
m.editorIndex = 0
|
||||
m.editorInput = newInput()
|
||||
m.editorInput.Placeholder = "Search nvim or OpenCode…"
|
||||
m.editorInput.Focus()
|
||||
m.editorDraft = &editedMsg{name: m.detail.Name, source: pipeline.ExecutionSource(m.detail.Source), baseVersion: m.detail.LatestVersion}
|
||||
return m, m.editorInput.Focus()
|
||||
return m.openAuthorPicker(editedMsg{name: m.detail.Name, source: pipeline.ExecutionSource(m.detail.Source), baseVersion: m.detail.LatestVersion})
|
||||
}
|
||||
|
||||
func (m Model) updatePipeline(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
@@ -329,7 +323,7 @@ func (m Model) updateConfirm(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
func (m Model) confirmView(height int) string {
|
||||
lines := []string{"Submit edited pipeline", m.pendingDraft.name, "", "Creates a new immutable version.", "s submit · e edit again · Esc keep draft"}
|
||||
if m.pendingDraft.createOnly {
|
||||
lines[0] = "Create pipeline from template"
|
||||
lines[0] = "Create pipeline"
|
||||
lines[3] = "Creates a NEW pipeline only when you submit."
|
||||
}
|
||||
if strings.Contains(m.pendingDraft.source, "```schedule") {
|
||||
|
||||
Reference in New Issue
Block a user