All notable changes to the "pretext-tools" extension will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Completions now use a Language Server Provider, which should improve performance.
- Completions use configurable RelaxNG schema, allowing for all possible completions given current position.
- Old snippets mostly removed in favor of these new completions.
- Performance enhancements; some features still available even if pretext isn't installed.
- Bug: Spell check ignoring words it shouldn't.
<instruction>
snippet for webwork.
- UI improvements to work with CLI v2.5
- Configuration defaults for cSpell spell checker to enable spell checking in pretext documents, and to ignore words inside tags and between math-mode tags (
<m>
,<me>
, etc.). - Spell check scopes are configurable: you can specify whether to check or ignore spelling inside comments, math, latex-image, code, etc.
- Support for CLI 2.5+ schema locations.
- Improved feedback messages when running PreTeXt commands.
- Garbled log messages in the output pain are now not garbled.
- Blank Lines formatting option to specify whether no, some, or many blank lines are added between elements.
- New snippets/completions.
- Bugs with formatting.
- Formatting now respects editor's choice of tab/space for indentation.
- Conversion of selection: convert reserved characters (&, <, >) to entities.
- Add plastex converter
- New snippets/completions
- Bugs with selection converter
- Support for running pretext in a virtual environment.
- Completion to close the current tag when typing
</
(like</tag>
). - Snippets for new documents.
- PreTeXt version reported in status bar tool-tip.
- Make default
ctrl+alt+b
keybinding build the most recently built target (or default).
- Broken snippets
- New setting allows you to set a custom pretext schema.
- Completions suggest file names for
xi:include
- Remove vscode-xml's cross reference suggestions in favor of pretext-tools version.
- Set default workspace settings to hide "properties" completion type so that duplicate suggestions from vscode-xml don't show.
- Added and improved the scope settings for many snippets.
- Bug that incorrectly identified the current open tag for snippet suggestions
- Scan for reference labels starting at the main source file and following xi:included links.
- Show snippets as completion options more unless explicitly excluded.
- Bug that crashed extension when no reference labels were found.
<xref ref="..."/>
will now suggest xml:ids from any file in thesource
directory.
- Snippets are now completion items, which limits when they show up as suggestions based on context.
- View in codechat or browser given as options in main menu.
Deploy to GitHub
now makes a commit to save recent work (using the-u
option).
- Formatter correctly adds empty line at end of document.
- New option to break paragraphs into separate lines for each sentence when formatting.
- Formatting no longer removes unknown tags (bug).
- Detection of math using
\(...\)
in latex to pretext conversion.
- Deprecated "Live Preview" as a view option (use "CodeChat" instead).
- Formatting support using vs-code's built-in formatting engine. From the command palette, select "Format Document".
- Bug that prevent initialization if not in a pretext project folder.
- Experimental support for converting selected LaTeX to PreTeXt.
- Bug that doesn't stop notification when using
pretext view
fixed.
- First quickPick menu item now builds most recently built target (or default).
- Target select menu no longer reorders targets.
generate
no longer in quickPick menu (sincepretext build
automatically generates assets that have changed).- Only one error notification when process produces an error, with an option to view log.
- New Button Menu Options: You can now refresh the list of targets and initiate a "Convert to PreTeXt" from the PreTeXt button menu.
- Progress notification for most commands.
- Fixed bug producing warning when clicking on the pretext button while running (undefined state).
- Fix issue with schema not loading on activation.
- Check for pandoc passes even if pandoc 2 is installed.
- "li-d" snippet fixed.
- Fix workspace attribute and page block snippets.
CTRL+ALT+p
now brings up the "run pretext command" selection menu
- No longer have green "run" button at top of window (Pretext status bar button makes that redundant).
- New function to use pandoc to convert an arbitrary file to PreTeXt. Pandoc must already be installed.
- If pretext is not installed, ask user whether they want to try to install, with option to stop asking.
- Status bar item: click to select a pretext command; shows when pretext is running; displays success/warnings (and opens output channel if clicked while running or on warning).
- Debug mode: clicking status bar or run icon includes option to run pretext commands in a terminal, allowing a user to interact or debug issues.
- View output/dismiss buttons on success message popup.
- Show log/dismiss buttons on error message popup.
- All output (both stdout and stderr) shown in output channel.
- Better status messages for warnings and success messages.
- Output channel not shown by default.
- Removed PreTeXt-Commands menu (functionality replaced by status bar button)
- Setting to decide schema version (Stable/Experimental) ready for updated schema from the CLI.
- Set default value for
xml.references
so that<xref ref="foo"/>
is linked to@xml:id="foo"
.
- Snippets that insert sanitized version of title as the xml:id remove all punctuation.
- PreTeXt Commands menu persists as long as extension is active.
- Pretext commands menu will be expanded by default first time it is used.
- Menu of available commands shows in explorer view.
- Support for Live Preview and CodeChat to view output. User is asked which of the available methods to use, or can select a default in settings.
- New snippets to create template part, chapter, section, exercises subfiles.
- Commands now categorized as "PreTeXt" instead of "PreTeXt Tools".
- Generate command now asks for target for which assets should be generated.
- Fixed file pattern for schema checking
- Set default configuration of XML package to follow xinclude elements.
- Improved a few snippets
- Support for PreTeXt schema validation via (now required) vscode-xml extension
- Build icon on top of editor
- Snippets only appear on pretext document, not any XML document
- PreTeXt is now a language, autodetected on ".ptx" files.
- New keybindings for build, view, and generate.
- Reorganized functions that call the CLI.
- CLI functions get list of targets from the project manifest.
- Checks for the CLI being installed; otherwise tries to install it.
- New snippets: console, creator, pre, cdata, <, &, all remark-like blocks, outcomes, computation, technology.
- More tags now wrap selected text (e.g., c, em, term, etc)
- Most snippets now start with
<
- Move of repository on github to just oscarlevin/pretext-tools
- Tabular snippet has correct closing tag
- Improved highlighting of math inside md and mdn.
- New commands registered that allow you to build and view PreTeXt documents in various formats by calling the PreTeXt-CLI (which needs to be installed).
- New snippets: url, url-empty, email, code-display, cline, alert, delete, insert, stale, foreign, taxon, pubtitle, articletitle, youtube, tag, tage, attribute, fillin.
- If text is selected, using m snippet keeps selected text (inside m).
- Grammar now selects stray less-than characters as illegal
- Grammar now bolds terms and alerts, specifies titles, and marks up code as raw.
- Now all snippets indent with tabs/spaces consistent with users settings.
- Tabstop on theorem snippet works.
- me with permid now gets highlighted as math
- Now all snippets indent with tabs/spaces consistent with users settings.
- new snippets: exercise-worksheet; exercise-numbered; @number; mdn.
- Set final tabstop for paragraphs to $0, so that additional snippets can be deployed.
- Fixed bug causing !ptx-article to appear when not wanted.
- reading questions snippets
- worksheets snippets (including @workspace and pagebreak)
- Some basic extensions to the xml grammar:
- permid attributes are highlighted as comments.
- math is highlighted as LaTeX does.
- Commented "TODO" highlighted as keyword.
- A healthy collection of snippets to get started.
- Should have all divisions and environments.
- Has a few attributes to help remember what can go where.
- A start on longer "templates", allowing a new pretext document to be filled in.