feat(filesystem): introduce support for local openable text file extensions and enhance folder expansion persistence in the UI

This commit is contained in:
Anish Sarkar 2026-04-28 01:12:15 +05:30
parent 7134b0feae
commit b85b7cbae0
5 changed files with 202 additions and 28 deletions

View file

@ -12,6 +12,15 @@ export const expandedFolderIdsAtom = atomWithStorage<Record<number, number[]>>(
{}
);
/**
* Expanded folder keys for Local filesystem tree, keyed by search space ID.
* Persisted so local tree expansion survives remounts/reloads.
*/
export const localExpandedFolderKeysAtom = atomWithStorage<Record<number, string[]>>(
"surfsense:localExpandedFolderKeys",
{}
);
/**
* Folder currently being renamed (inline edit mode).
* null means no folder is being renamed.