Vanessa 2024-06-09 15:46:31 +08:00
parent 6acf780269
commit 80ebf8586c
4 changed files with 55 additions and 100 deletions

View file

@ -1925,7 +1925,7 @@ declare namespace Config {
* - `1`: Group by document
*/
group: number;
hasReplace: any;
hasReplace: boolean;
/**
* Readable path list
*/
@ -1961,6 +1961,7 @@ declare namespace Config {
r: string;
/**
* Whether to clear the search box after removing the currently used query condition group
* https://github.com/siyuan-note/siyuan/issues/7745
*/
removed?: boolean;
replaceTypes: IUILayoutTabSearchConfigReplaceTypes;

View file

@ -259,44 +259,6 @@ interface ISearchAssetOption {
k: string,
}
interface ISearchOption {
page: number
removed?: boolean // 移除后需记录搜索内容 https://github.com/siyuan-note/siyuan/issues/7745
name?: string
sort: number, // 0按块类型默认1按创建时间升序2按创建时间降序3按更新时间升序4按更新时间降序5按内容顺序仅在按文档分组时6按相关度升序7按相关度降序
group: number, // 0不分组1按文档分组
hasReplace: boolean,
method: number // 0文本1查询语法2SQL3正则表达式
hPath: string
idPath: string[]
k: string
r: string
types: ISearchType,
replaceTypes: {
[key: string]: boolean;
},
}
interface ISearchType {
audioBlock: boolean
videoBlock: boolean
iframeBlock: boolean
widgetBlock: boolean
mathBlock: boolean
table: boolean
blockquote: boolean
superBlock: boolean
paragraph: boolean
document: boolean
heading: boolean
list: boolean
listItem: boolean
codeBlock: boolean
htmlBlock: boolean
embedBlock: boolean
databaseBlock: boolean
}
interface ITextOption {
color?: string,
type: string