- Create TextFileEditor.svelte: full editor/viewer for text files
- Markdown: edit/preview/split modes with MarkdownEditor + MarkdownPreview
- Plain text: readonly monospace viewer
- Footer: external open button + save (markdown) + close
- Rewrite _openFile in FilesTab: text/markdown → TextFileEditor, images/PDF → FilePreviewModal
- Linked .md notes → note editor (via CheckFileAction)
- Unlinked .md / text files → TextFileEditor (not FilePreviewModal)
- Fix toggleMenu in FileTreeRow: position using getBoundingClientRect
- Expand codeNames/textMimes for all text file types
- Add debug logs for file open flow and menu positioning
Co-Authored-By: OWL (Hermes Agent) <hermes@nousresearch.com>