|
|
@@ -619,6 +619,9 @@ func (ic IssueCollection) update(msg tea.Msg) (widget, tea.Cmd) {
|
|
|
return ic, tea.Quit
|
|
|
case "c":
|
|
|
return ic, ic.newIssueInCollection
|
|
|
+ case "e":
|
|
|
+ ic.Path = ic.Collection[ic.selection].Path
|
|
|
+ return ic, ic.edit
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -629,6 +632,8 @@ func (ic IssueCollection) sendLoad() tea.Msg { return loadPath(ic.Path) }
|
|
|
|
|
|
func (ic IssueCollection) newIssueInCollection() tea.Msg { return createInCollectionMsg(ic.Path) }
|
|
|
|
|
|
+func (ic IssueCollection) edit() tea.Msg { return newEditWidget(ic.Path) }
|
|
|
+
|
|
|
// render cmd for IssueCollection widget
|
|
|
func (ic IssueCollection) render() tea.Msg {
|
|
|
var output string
|
|
|
@@ -657,7 +662,7 @@ func (ic IssueCollection) render() tea.Msg {
|
|
|
// keyhelp cmd for IssueCollection widget
|
|
|
func (ic IssueCollection) keyhelp() string {
|
|
|
var output string
|
|
|
- output = output + "\nj/k: down/up\t\tc: create new issue\t\tenter: select\t\tq/ctrl+c: quit"
|
|
|
+ output = output + "\nc: create new issue\t\tenter: view issue\t\tj/k: down/up\t\tq/ctrl+c: quit"
|
|
|
return output
|
|
|
}
|
|
|
|