fix: inline file editor mode in FilesTab, remove separate TextFileEditor

- Replace separate TextFileEditor modal with inline editor mode in FilesTab
- Editor mode replaces browser mode (file list) within the same .files-tab container
- Markdown files: view/edit/split modes using existing MarkdownEditor + MarkdownPreview
- Plain text files: readonly monospace viewer
- Linked .md notes → note editor (via CheckFileAction)
- Unlinked .md / text files → inline editor (not FilePreviewModal)
- FilePreviewModal only for images, PDF, binary
- Back button returns to file browser without losing folder state
- Reset editor state on selectedNode change
- Remove TextFileEditor.svelte (no longer needed)

Co-Authored-By: OWL (Hermes Agent) <hermes@nousresearch.com>
)
This commit is contained in:
2026-06-16 09:51:25 +08:00
parent d7d806530b
commit 383a9546df
6 changed files with 386 additions and 488 deletions
+2 -2
View File
@@ -19,8 +19,8 @@
background: #13131f;
}
</style>
<script type="module" crossorigin src="/assets/main-DLhykySS.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main-CPk9naW6.css">
<script type="module" crossorigin src="/assets/main-D23Sgy9Q.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main-CoirOqGf.css">
</head>
<body>
<div id="app"></div>