mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 22:21:28 +08:00
🎨 Global search supports searching with tabs https://github.com/siyuan-note/siyuan/issues/14632
This commit is contained in:
parent
c142087796
commit
8c95f47fd5
@ -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…
Reference in New Issue
Block a user