Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/pull/17597

Vanessa125361ff63e0
diff --git a/app/src/protyle/scroll/saveScroll.ts b/app/src/protyle/scroll/saveScroll.ts
index eb270ddd51..cb4e9e728d 100644
--- a/app/src/protyle/scroll/saveScroll.ts
+++ b/app/src/protyle/scroll/saveScroll.ts
@@ -74,6 +74,7 @@ export const getDocByScroll = (options: {
query: options.protyle.query?.key,
queryMethod: options.protyle.query?.method,
queryTypes: options.protyle.query?.types,
+ querySubTypes: options.protyle.query?.subTypes,
highlight: !isSupportCSSHL(),
}, response => {
if (response.code === 1) {
@@ -82,6 +83,7 @@ export const getDocByScroll = (options: {
query: options.protyle.query?.key,
queryMethod: options.protyle.query?.method,
queryTypes: options.protyle.query?.types,
+ querySubTypes: options.protyle.query?.subTypes,
highlight: !isSupportCSSHL(),
}, response => {
onGet({
@@ -120,6 +122,7 @@ export const getDocByScroll = (options: {
query: options.protyle.query?.key,
queryMethod: options.protyle.query?.method,
queryTypes: options.protyle.query?.types,
+ querySubTypes: options.protyle.query?.subTypes,
highlight: !isSupportCSSHL(),
}, response => {
onGet({
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 2caceb497c..61368e41d1 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -72,6 +72,7 @@ export const openGlobalSearch = (app: App, text: string, replace: boolean, searc
group: localData.group,
sort: localData.sort,
types: Object.assign({}, localData.types),
+ subTypes: Object.assign({}, localData.subTypes),
replaceTypes: Object.assign({}, localData.replaceTypes),
removed: localData.removed,
page: 1
@@ -1157,6 +1158,7 @@ export const getArticle = (options: {
query: options.value || null,
queryMethod: options.config?.method || null,
queryTypes: options.config?.types || null,
+ querySubTypes: options.config?.subTypes || null,
mode: zoomIn ? 0 : 3,
size: zoomIn ? Constants.SIZE_GET_MAX : window.siyuan.config.editor.dynamicLoadBlocks,
zoom: zoomIn,
@@ -1169,6 +1171,7 @@ export const getArticle = (options: {
key: options.value || null,
method: options.config?.method || null,
types: options.config?.types || null,
+ subTypes: options.config?.subTypes || null,
};
// https://ld246.com/article/1770132984152
if (options.edit.protyle.options.render.title) {
diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.ts
index 64478779d9..77ce1eec9e 100644
--- a/app/src/types/protyle.d.ts
+++ b/app/src/types/protyle.d.ts
@@ -1,5 +1,3 @@
-import IUILayoutTabSearchConfigTypes = Config.IUILayoutTabSearchConfigTypes;
-
interface ILuteNode {
TokensStr: () => string;
__internal_object__: {
@@ -526,7 +524,8 @@ interface IProtyle {
query?: {
key: string,
method: number
- types: IUILayoutTabSearchConfigTypes
+ types: Config.IUILayoutTabSearchConfigTypes
+ subTypes: Config.IUILayoutTabSearchConfigSubTypes
},
block: {
id?: string,