mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-03 21:02:40 +02:00
feat(filesystem): introduce support for local openable text file extensions and enhance folder expansion persistence in the UI
This commit is contained in:
parent
7134b0feae
commit
b85b7cbae0
5 changed files with 202 additions and 28 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue