mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 18:26:09 +01:00
🎨 搜索自定义属性改为搜索全部属性 Fix https://github.com/siyuan-note/siyuan/issues/7367
This commit is contained in:
parent
d1f493e2d2
commit
fe0f2fb7e0
9 changed files with 19 additions and 14 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue