mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Tag search supports space-separated keywords https://github.com/siyuan-note/siyuan/issues/14580
This commit is contained in:
parent
9889ef7fb2
commit
a0c0ca025d
1 changed files with 1 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ func SearchTags(keyword string) (ret []string) {
|
||||||
sql.FlushQueue()
|
sql.FlushQueue()
|
||||||
|
|
||||||
labels := labelBlocksByKeyword(keyword)
|
labels := labelBlocksByKeyword(keyword)
|
||||||
|
keyword = strings.Join(strings.Split(keyword, " "), search.TermSep)
|
||||||
for label := range labels {
|
for label := range labels {
|
||||||
_, t := search.MarkText(label, keyword, 1024, Conf.Search.CaseSensitive)
|
_, t := search.MarkText(label, keyword, 1024, Conf.Search.CaseSensitive)
|
||||||
ret = append(ret, t)
|
ret = append(ret, t)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue