🎨 Tag search supports space-separated keywords https://github.com/siyuan-note/siyuan/issues/14580

This commit is contained in:
Daniel 2025-04-16 20:19:22 +08:00
parent 9889ef7fb2
commit a0c0ca025d
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -306,6 +306,7 @@ func SearchTags(keyword string) (ret []string) {
sql.FlushQueue()
labels := labelBlocksByKeyword(keyword)
keyword = strings.Join(strings.Split(keyword, " "), search.TermSep)
for label := range labels {
_, t := search.MarkText(label, keyword, 1024, Conf.Search.CaseSensitive)
ret = append(ret, t)