Fix project strings

This commit is contained in:
Brian Buller 2022-10-26 12:05:38 -05:00
parent a86ee15cf3
commit b307ed73c5

View File

@ -101,7 +101,7 @@ func getParts(text string) []string {
// Project.txt ^/home/user/projects/projecttxt @personal +projectxt contact:"Frank Workman" "Address 1":"1234 Work Place" // Project.txt ^/home/user/projects/projecttxt @personal +projectxt contact:"Frank Workman" "Address 1":"1234 Work Place"
func (project Project) String() string { func (project Project) String() string {
text := fmt.Sprintf("%s ", project.Name) text := fmt.Sprintf("%s ", project.Name)
text += fmt.Sprintf("%s ", project.Directory) text += fmt.Sprintf("^%s ", project.Directory)
if len(project.Contexts) > 0 { if len(project.Contexts) > 0 {
sort.Strings(project.Contexts) sort.Strings(project.Contexts)
for _, context := range project.Contexts { for _, context := range project.Contexts {