mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 搜索自定义属性改为搜索全部属性 Fix https://github.com/siyuan-note/siyuan/issues/7367
This commit is contained in:
@@ -41,10 +41,10 @@ type Search struct {
|
||||
Limit int `json:"limit"`
|
||||
CaseSensitive bool `json:"caseSensitive"`
|
||||
|
||||
Name bool `json:"name"`
|
||||
Alias bool `json:"alias"`
|
||||
Memo bool `json:"memo"`
|
||||
Custom bool `json:"custom"`
|
||||
Name bool `json:"name"`
|
||||
Alias bool `json:"alias"`
|
||||
Memo bool `json:"memo"`
|
||||
IAL bool `json:"ial"`
|
||||
|
||||
BacklinkMentionName bool `json:"backlinkMentionName"`
|
||||
BacklinkMentionAlias bool `json:"backlinkMentionAlias"`
|
||||
@@ -77,10 +77,10 @@ func NewSearch() *Search {
|
||||
Limit: 64,
|
||||
CaseSensitive: true,
|
||||
|
||||
Name: true,
|
||||
Alias: true,
|
||||
Memo: true,
|
||||
Custom: false,
|
||||
Name: true,
|
||||
Alias: true,
|
||||
Memo: true,
|
||||
IAL: false,
|
||||
|
||||
BacklinkMentionName: true,
|
||||
BacklinkMentionAlias: false,
|
||||
|
||||
@@ -866,7 +866,7 @@ func fieldRegexp(regexp string) string {
|
||||
buf.WriteString(regexp)
|
||||
buf.WriteString("'")
|
||||
}
|
||||
if Conf.Search.Custom {
|
||||
if Conf.Search.IAL {
|
||||
buf.WriteString(" OR ial REGEXP '")
|
||||
buf.WriteString(regexp)
|
||||
buf.WriteString("'")
|
||||
@@ -889,7 +889,7 @@ func columnFilter() string {
|
||||
if Conf.Search.Memo {
|
||||
buf.WriteString(" memo")
|
||||
}
|
||||
if Conf.Search.Custom {
|
||||
if Conf.Search.IAL {
|
||||
buf.WriteString(" ial")
|
||||
}
|
||||
buf.WriteString(" tag}")
|
||||
|
||||
Reference in New Issue
Block a user