mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat(core): quick search support search locally (#12987)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced a "search locally" option in the docs quick search, allowing users to perform searches on their local device when supported. * Added new quick search group labels and options for local search, with dynamic UI updates based on search mode. * **Improvements** * Enhanced search responsiveness by reducing input throttling delay. * Added a pre-submission check to improve search item handling. * Improved stability by handling cases where document IDs may be missing during search result processing. * **Localization** * Added English language support for new local search options and labels. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -4519,12 +4519,22 @@ export function useAFFiNEI18N(): {
|
||||
* `New`
|
||||
*/
|
||||
["com.affine.quicksearch.group.creation"](): string;
|
||||
/**
|
||||
* `Search locally`
|
||||
*/
|
||||
["com.affine.quicksearch.search-locally"](): string;
|
||||
/**
|
||||
* `Search for "{{query}}"`
|
||||
*/
|
||||
["com.affine.quicksearch.group.searchfor"](options: {
|
||||
readonly query: string;
|
||||
}): string;
|
||||
/**
|
||||
* `Search for "{{query}}" (locally)`
|
||||
*/
|
||||
["com.affine.quicksearch.group.searchfor-locally"](options: {
|
||||
readonly query: string;
|
||||
}): string;
|
||||
/**
|
||||
* `Reset sync`
|
||||
*/
|
||||
|
||||
@@ -1121,7 +1121,9 @@
|
||||
"com.affine.split-view-folder-warning.description": "Split view does not support folders.",
|
||||
"do-not-show-this-again": "Do not show this again",
|
||||
"com.affine.quicksearch.group.creation": "New",
|
||||
"com.affine.quicksearch.search-locally": "Search locally",
|
||||
"com.affine.quicksearch.group.searchfor": "Search for \"{{query}}\"",
|
||||
"com.affine.quicksearch.group.searchfor-locally": "Search for \"{{query}}\" (locally)",
|
||||
"com.affine.resetSyncStatus.button": "Reset sync",
|
||||
"com.affine.resetSyncStatus.description": "This operation may fix some synchronization issues.",
|
||||
"com.affine.rootAppSidebar.collections": "Collections",
|
||||
|
||||
Reference in New Issue
Block a user