fixed flashing/changed search debounce

This commit is contained in:
Gamosoft 2026-02-23 17:51:11 +01:00
parent 3495c0d9ee
commit 99c1fd0d36
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
// Configuration constants // Configuration constants
const CONFIG = { const CONFIG = {
AUTOSAVE_DELAY: 1000, // ms - Delay before triggering autosave AUTOSAVE_DELAY: 1000, // ms - Delay before triggering autosave
SEARCH_DEBOUNCE_DELAY: 1000, // ms - Delay before running note search while typing SEARCH_DEBOUNCE_DELAY: 500, // ms - Delay before running note search while typing
SAVE_INDICATOR_DURATION: 2000, // ms - How long to show "saved" indicator SAVE_INDICATOR_DURATION: 2000, // ms - How long to show "saved" indicator
SCROLL_SYNC_DELAY: 50, // ms - Delay to prevent scroll sync interference SCROLL_SYNC_DELAY: 50, // ms - Delay to prevent scroll sync interference
SCROLL_SYNC_MAX_RETRIES: 10, // Maximum attempts to find editor/preview elements SCROLL_SYNC_MAX_RETRIES: 10, // Maximum attempts to find editor/preview elements
@ -212,7 +212,8 @@ function noteApp() {
readableLineLength: true, readableLineLength: true,
// Hide underscore-prefixed folders (_attachments, _templates) from sidebar // Hide underscore-prefixed folders (_attachments, _templates) from sidebar
hideUnderscoreFolders: false, // Read synchronously to prevent flash on initial render
hideUnderscoreFolders: localStorage.getItem('hideUnderscoreFolders') === 'true',
// Icon rail / panel state // Icon rail / panel state
activePanel: 'files', // 'files', 'search', 'tags', 'settings' activePanel: 'files', // 'files', 'search', 'tags', 'settings'