mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 14:17:14 +00:00
Export Text…'s save dialog in the desktop app offers two file types:
Text (the text file as before, still the first and default type) and
Shortcut sheet (PDF). The type picked decides the file.
The sheet lists the rows that have a shortcut, Tools and then a group
per top-level menu, each under a colored band, shortcut on the left and
name on the right. The groups flow down four columns of landscape Letter
or A4 pages, titled with the set's name. A row with several shortcuts
has a line for each, a shortcut too wide for its column is set smaller,
and a long name ends in "…". The sheet is laid out as a document and
written by the PDF writer.
shortcuts.exportText takes `format` ("text" or "sheet"; default text)
and `pageSize` ("letter" or "a4"). Without `pageSize` the sheet is on A4
when the current document prints on A4, else on Letter. A `path` is
written as given, as text without `format`, and a bad value is an error.
When `format` names a format, or the save dialog reports the type
picked, the name the dialog returns gets that format's extension, and a
file already at the changed path is replaced only after asking.
Docs: docs/mcp.md, docs/target-app-parity.md.