Allow moving tickets between projects with P.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Skruecken
2026-10-19 14:19:10 +02:00
co-authored by Cursor
parent c5920ffd54
commit 7666715f6c
13 changed files with 369 additions and 6 deletions
+6 -1
View File
@@ -9,6 +9,7 @@ type KeyMap struct {
New key.Binding
Search key.Binding
Project key.Binding
MoveTicket key.Binding // P — move selected ticket to another project
Board key.Binding
Status key.Binding
Edit key.Binding
@@ -51,6 +52,10 @@ func DefaultKeyMap() KeyMap {
key.WithKeys("p"),
key.WithHelp("p", "project"),
),
MoveTicket: key.NewBinding(
key.WithKeys("P"),
key.WithHelp("P", "move ticket"),
),
Board: key.NewBinding(
key.WithKeys("l", "tab"),
key.WithHelp("l", "list"),
@@ -124,7 +129,7 @@ func DefaultKeyMap() KeyMap {
// ShortHelp implements help.KeyMap.
func (k KeyMap) ShortHelp() []key.Binding {
return []key.Binding{k.Up, k.New, k.Search, k.Project, k.Board, k.Status, k.Edit, k.Timer, k.TimeManual, k.TimeEntries, k.Report, k.Delete, k.DeleteForce, k.Undo, k.Redo, k.Quit}
return []key.Binding{k.Up, k.New, k.Search, k.Project, k.MoveTicket, k.Board, k.Status, k.Edit, k.Timer, k.TimeManual, k.TimeEntries, k.Report, k.Delete, k.DeleteForce, k.Undo, k.Redo, k.Quit}
}
// FullHelp implements help.KeyMap.