|
@@ -408,7 +408,7 @@ func (e edit) createIssueObject() tea.Msg {
|
|
|
newIssue.Title = value
|
|
newIssue.Title = value
|
|
|
if parsePathToHuman(newIssue.Path) != value {
|
|
if parsePathToHuman(newIssue.Path) != value {
|
|
|
dir, _ := filepath.Split(newIssue.Path)
|
|
dir, _ := filepath.Split(newIssue.Path)
|
|
|
- newIssue.Path = filepath.Join(dir, value)
|
|
|
|
|
|
|
+ newIssue.Path = filepath.Join(dir, parseHumanToPath(value))
|
|
|
}
|
|
}
|
|
|
case "status":
|
|
case "status":
|
|
|
newIssue.Status = Field{Path: "/status", Data: value}
|
|
newIssue.Status = Field{Path: "/status", Data: value}
|
|
@@ -461,7 +461,7 @@ func (e edit) editBlankDescription(issue Issue) tea.Cmd {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// does this just call InvokeEditor?
|
|
|
|
|
|
|
+// Calls InvokeEditor with e.Path, reports output via ReadTemplate
|
|
|
func (e edit) editExistingDescription(issue Issue) tea.Cmd {
|
|
func (e edit) editExistingDescription(issue Issue) tea.Cmd {
|
|
|
err := InvokeEditor(filepath.Join(e.Path, "description"))
|
|
err := InvokeEditor(filepath.Join(e.Path, "description"))
|
|
|
if err != nil {
|
|
if err != nil {
|
|
@@ -556,13 +556,13 @@ func (i Issue) render() tea.Msg {
|
|
|
// variadics
|
|
// variadics
|
|
|
var tags string
|
|
var tags string
|
|
|
for _, field := range i.Tags.Fields {
|
|
for _, field := range i.Tags.Fields {
|
|
|
- tags = tags + field.Path + ", "
|
|
|
|
|
|
|
+ tags = tags + parsePathToHuman(field.Path) + ", "
|
|
|
}
|
|
}
|
|
|
tags = strings.TrimRight(tags, ", ")
|
|
tags = strings.TrimRight(tags, ", ")
|
|
|
|
|
|
|
|
var blockedby string
|
|
var blockedby string
|
|
|
for _, field := range i.Blockedby.Fields {
|
|
for _, field := range i.Blockedby.Fields {
|
|
|
- blockedby = blockedby + field.Path + ", "
|
|
|
|
|
|
|
+ blockedby = blockedby + parsePathToHuman(field.Path) + ", "
|
|
|
}
|
|
}
|
|
|
blockedby = strings.TrimRight(blockedby, ", ")
|
|
blockedby = strings.TrimRight(blockedby, ", ")
|
|
|
|
|
|
|
@@ -642,8 +642,6 @@ func (ic IssueCollection) edit() tea.Msg { return newEditWidget(ic.Path) }
|
|
|
// render cmd for IssueCollection widget
|
|
// render cmd for IssueCollection widget
|
|
|
func (ic IssueCollection) render() tea.Msg {
|
|
func (ic IssueCollection) render() tea.Msg {
|
|
|
var output string
|
|
var output string
|
|
|
- if ic.selection == -1 {
|
|
|
|
|
- }
|
|
|
|
|
var left string
|
|
var left string
|
|
|
output = output + "Issues in " + ic.Path + "...\n\n"
|
|
output = output + "Issues in " + ic.Path + "...\n\n"
|
|
|
for i, issue := range ic.Collection {
|
|
for i, issue := range ic.Collection {
|
|
@@ -701,7 +699,7 @@ func (w createInCollection) update(msg tea.Msg) (widget, tea.Cmd) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (w createInCollection) create() tea.Msg {
|
|
func (w createInCollection) create() tea.Msg {
|
|
|
- w.Path = filepath.Join(w.Path, w.name)
|
|
|
|
|
|
|
+ w.Path = filepath.Join(w.Path, parseHumanToPath(w.name))
|
|
|
return newEditWidget(w.Path)
|
|
return newEditWidget(w.Path)
|
|
|
}
|
|
}
|
|
|
|
|
|