mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Global search supports searching with tabs https://github.com/siyuan-note/siyuan/issues/14632
This commit is contained in:
parent
c142087796
commit
8c95f47fd5
1 changed files with 2 additions and 0 deletions
|
|
@ -2195,8 +2195,10 @@ func getRefSearchIgnoreLines() (ret []string) {
|
||||||
|
|
||||||
func filterQueryInvisibleChars(query string) string {
|
func filterQueryInvisibleChars(query string) string {
|
||||||
query = strings.ReplaceAll(query, " ", "_@full_width_space@_")
|
query = strings.ReplaceAll(query, " ", "_@full_width_space@_")
|
||||||
|
query = strings.ReplaceAll(query, "\t", "_@tab@_")
|
||||||
query = util.RemoveInvalid(query)
|
query = util.RemoveInvalid(query)
|
||||||
query = strings.ReplaceAll(query, "_@full_width_space@_", " ")
|
query = strings.ReplaceAll(query, "_@full_width_space@_", " ")
|
||||||
|
query = strings.ReplaceAll(query, "_@tab@_", "\t")
|
||||||
return query
|
return query
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue