Improve search and show save errors

- Show search results in the right notebook or All Notes list
- Scroll to the selected note and highlight matching text
- Keep unsaved edits safe and ignore old or cancelled searches
- Show save errors with a Retry button
- Run graph and vault statistics scans in the background
- Fix folder checks when counting vault files
- Keep desktop window-close code out of mobile builds
This commit is contained in:
Yuri Karamian committed 2026-09-28 21:06:28 +02:00
1 parent 640b5e3d10
commit 923cb9571c
21 files changed
+1224 -117

No files matched your search

+15
View File
@@ -57,3 +57,18 @@ test('leaves the title visible when title hiding is disabled', () => {
hiddenTitle: null
});
});
test('reports the exact contiguous range removed without changing leading blank behavior', () => {
for (const [markdown, expected, removedRange] of [
['# Note title\n\nBody', 'Body', { from: 0, to: 14 }],
['\n# Note title\nBody', '\nBody', { from: 1, to: 14 }],
['\n\n# Note title', '\n', { from: 1, to: 14 }],
['\n\n# Note title\n', '\n', { from: 1, to: 15 }],
['# Note title\r\n\r\nBody', 'Body', { from: 0, to: 16 }],
]) {
const stripped = stripTitleHeading(markdown, 'Note title', true);
assert.equal(stripped.markdown, expected);
assert.deepEqual(stripped.removedRange, removedRange);
assert.equal(markdown.slice(0, removedRange.from) + markdown.slice(removedRange.to), expected);
}
});