mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 10:47:11 -06:00
The reference app detects lists typed as 1., 1), A. or A), and makes custom bullets from *, #, > or + followed by a space. In VectorCraft the characters stayed as text. When the Type tool types a space on its own after one of these at the start of a paragraph in no list, the typing so far becomes one undo step. The new command text.startList then removes the typed characters and the space and makes the paragraph a numbered list in 1, 2, 3 or A, B, C, or a bulleted list with the filled dot. A paragraph with no indents gets the 18 pt hanging indent. One Undo puts the characters back as text with no list, and the caret goes on after them; Redo removes them again. The same characters later in a paragraph, list characters pasted in one piece with the space and a paragraph already in a list start nothing. Docs: docs/mcp.md, docs/target-app-parity.md.