Repository navigation
Drop files onto the text
NativeTextViewWrapper.fileDrop (EditorFileDrop) takes files dragged onto the text. Per drop the embedder inserts Markdown where they land, takes them itself, or refuses. A drop over an image, formula or table goes above or below it, and file promises (Photos, Mail, a browser) are written to a temporary folder first. Without it, AppKit's own drag handling stays. (#214)
Undo that survives leaving
NativeTextViewWrapper(parkingKey:)keeps the editor when the embedder removes it (routing to another screen) and hands the same text view, undo stacks and scroll position to the next editor with that key. Off by default. (#218)- Undo stacks are kept for the ten most recently shown documents instead of the open tabs, and checked against the document's own text before use, so ⌘Z never replays over text replaced from outside. (#217, #219)
- A document comes back with its scroll position, selection and keyboard focus. (#219)
Changed
- The extension and directive seams' syntax types and
MarkdownToken's attribute keys are in their own Foundation-only files. No API or behaviour change; step 1 of #208. (#209)
Fixed
- Copied and pasted links keep their ids, and a pasted image goes in as
![[Name]]with its id beside the text. (#214) - The insertion point follows the pointer while dragging onto the text, and an image at the end of a document stays on screen while scrolling. (#214)
- A space typed at the right edge of a wrapped line moves the caret to the next line. (#211)
- Switching between two documents with the same text completes. (#212)
- VoiceOver no longer scrolls the text about 75 pt when its cursor lands on it. (#210)
- Selected text on an opaque block fill keeps its colour in Dark Mode. (#216)
- Writing Tools panel results are saved as soon as they land, Key Points and List arrive as Markdown lists, and Return and syntax reveal work again afterwards. (#217)
Full changelog: 0.15.0...0.16.0
Contributors
by @luca-chen198 — file drop (#214), parked editors and undo across switches (#217, #218, #219), the caret at a wrap edge (#211), same-text switches (#212), VoiceOver (#210), selection colour on block fills (#216) and Writing Tools panel results (#217).
by @lobrenov — the syntax types in their own files (#209).
by @Nicolas-Py — README cleanup.