This website requires JavaScript.
Explore
Help
Register
Sign In
davidl
/
tolaria
Watch
1
Star
0
Fork
0
You've already forked tolaria
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
d29d5a03aec00a42bae769e200908c98d32701c8
tolaria
/
design
/
raw-editor-mode.pen
2 lines
31 B
Plaintext
Raw
Normal View
History
Unescape
Escape
feat: raw editor mode — plain textarea with frontmatter + wikilink autocomplete Adds a third editor mode (alongside WYSIWYG and Diff) that shows the raw markdown file in a monospaced textarea. Includes: - useRawMode hook with derived state (no setState-in-effect) and onFlushPending - RawEditorView: textarea with 500ms debounce, YAML error banner, wikilink autocomplete via [[ trigger, Cmd+S save - BreadcrumbBar Code icon toggles raw mode; mutual exclusion with diff mode - Command palette: "Toggle Raw Editor" (View group, requires active tab) - useEditorModeExclusion hook extracted to keep Editor.tsx under complexity threshold - buildViewCommands extracted from useCommandRegistry for same reason - RawToggleButton and RawModeEditorSection components extracted for clean CC Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 18:38:25 +01:00
{"children":[],"variables":{}}
Reference in New Issue
Copy Permalink