mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 22:21:28 +08:00
🎨 Tag search supports space-separated keywords https://github.com/siyuan-note/siyuan/issues/14580
This commit is contained in:
parent
9889ef7fb2
commit
a0c0ca025d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user