Vanessa 2025-12-06 16:48:05 +08:00
parent c1cdb9846c
commit b98e40fb07
3 changed files with 19 additions and 0 deletions

View file

@ -14,6 +14,7 @@ export const getDefaultType = () => {
mathBlock: window.siyuan.config.search.mathBlock,
table: window.siyuan.config.search.table,
blockquote: window.siyuan.config.search.blockquote,
callout: window.siyuan.config.search.callout,
superBlock: window.siyuan.config.search.superBlock,
paragraph: window.siyuan.config.search.paragraph,
embedBlock: window.siyuan.config.search.embedBlock,

View file

@ -130,6 +130,15 @@ export const filterMenu = (config: Config.IUILayoutTabSearchConfig, cb: () => vo
<span class="fn__space"></span>
<input class="b3-switch fn__flex-center" data-type="blockquote" type="checkbox"${config.types.blockquote ? " checked" : ""}>
</label>
<label class="fn__flex b3-label">
<svg class="ft__on-surface svg fn__flex-center"><use xlink:href="#iconCallout"></use></svg>
<span class="fn__space"></span>
<div class="fn__flex-1 fn__flex-center">
${window.siyuan.languages.callout} <sup>[1]</sup>
</div>
<span class="fn__space"></span>
<input class="b3-switch fn__flex-center" data-type="callout" type="checkbox"${config.types.callout ? " checked" : ""}>
</label>
<label class="fn__flex b3-label">
<svg class="ft__on-surface svg fn__flex-center"><use xlink:href="#iconSuper"></use></svg>
<span class="fn__space"></span>

View file

@ -1216,6 +1216,10 @@ declare namespace Config {
* Whether to search quote blocks
*/
blockquote: boolean;
/**
* Whether to search callout
*/
callout: boolean;
/**
* Whether to distinguish between uppercase and lowercase letters when searching
*/
@ -2302,6 +2306,11 @@ declare namespace Config {
* @default false
*/
blockquote: boolean;
/**
* Search results contain callout blocks
* @default false
*/
callout: boolean;
/**
* Search results contain code blocks
* @default false