From 3728b9b14faa45adbeac2a7013d9ed209617f72d Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Tue, 12 Sep 2023 10:43:41 -0500 Subject: [PATCH] Repo & Notes in string func --- project.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project.go b/project.go index 6b9366a..41ac112 100644 --- a/project.go +++ b/project.go @@ -126,6 +126,12 @@ func getParts(text string) []string { func (project Project) String() string { text := fmt.Sprintf("%s ", project.Name) text += fmt.Sprintf("^%s ", project.Directory) + if project.Repo != "" { + text += fmt.Sprintf("~%s ", project.Repo) + } + if project.Notes != "" { + text += fmt.Sprintf("#%s ", project.Notes) + } if len(project.Contexts) > 0 { sort.Strings(project.Contexts) for _, context := range project.Contexts {