task: link tags to indexs

This commit is contained in:
Anish Lakhwara 2024-05-25 03:20:34 -07:00
parent 30f6f2b7b4
commit 457dd298bd

View file

@ -78,7 +78,7 @@ func RowsToFile(taskList []table.Row, activeIndex int) []string {
// TODO add links to indexs of EACH tag
rowClone[2] = ""
for _, tag := range strings.Split(row[2], " ") {
rowClone[2] += "[[../indexs/" + tag + ".wiki|" + tag + "]] "
rowClone[2] += "[[../indexs/" + tag + ".wiki|" + tag + "]]"
}
rowClone[3] = "[[../task-notes/" + uuid + ".wiki|" + row[3] + "]]"
rows = append(rows, strings.Join(rowClone[1:], " - "))