Support listing notes by tag

This commit is contained in:
Maximilian Friedersdorff 2025-11-05 08:46:22 +00:00
parent 105275f3e0
commit 95865257a3
2 changed files with 17 additions and 4 deletions

View file

@ -398,3 +398,12 @@ func (n *Note) ToggleBox(nthBox int) {
n.Body = buf.Bytes()
n.Save()
}
func (n *Note) HasTag(tag string) bool {
for _, tag_ := range n.Tags {
if tag_ == tag {
return true
}
}
return false
}