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
+14 -9
View File
@@ -11,15 +11,16 @@ type KeyMap struct {
Project key.Binding
Board key.Binding
Status key.Binding
Edit key.Binding
Delete key.Binding // x — confirm first
DeleteForce key.Binding // X — immediate
ConfirmYes key.Binding
Undo key.Binding
Redo key.Binding
Quit key.Binding
Enter key.Binding
Escape key.Binding
Edit key.Binding
EditInEditor key.Binding // ctrl+e — open $EDITOR while creating
Delete key.Binding // x — confirm first
DeleteForce key.Binding // X — immediate
ConfirmYes key.Binding
Undo key.Binding
Redo key.Binding
Quit key.Binding
Enter key.Binding
Escape key.Binding
}
// DefaultKeyMap returns the default key bindings.
@@ -57,6 +58,10 @@ func DefaultKeyMap() KeyMap {
key.WithKeys("e"),
key.WithHelp("e", "edit"),
),
EditInEditor: key.NewBinding(
key.WithKeys("ctrl+e"),
key.WithHelp("ctrl+e", "editor"),
),
Delete: key.NewBinding(
key.WithKeys("x"),
key.WithHelp("x", "delete"),