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:
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user