mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
c1cdb9846c
commit
b98e40fb07
3 changed files with 19 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
9
app/src/types/config.d.ts
vendored
9
app/src/types/config.d.ts
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue