Allow opening the editor while creating a ticket with Ctrl+e.

Draft headline from the create input is passed into $EDITOR so title and description can be written before the ticket is saved.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Skruecken
2026-10-19 10:35:34 +02:00
co-authored by Cursor
parent 28cd2628e4
commit 6527d91b4f
3 changed files with 66 additions and 16 deletions
+5 -1
View File
@@ -14,10 +14,14 @@ type helpEntry struct {
func (m Model) helpEntries() []helpEntry {
switch m.mode {
case ModeCreate:
return []helpEntry{
entries := []helpEntry{
{"enter", "save"},
{"esc", "cancel"},
}
if !m.creatingProject {
entries = append([]helpEntry{{"ctrl+e", "editor"}}, entries...)
}
return entries
case ModeSearch:
return []helpEntry{
{"enter", "apply"},