cyrusfirheir / twee3-language-tools

[ VSCode extension ] Syntax highlighting and programmatic language tools for Twee 3, and Twine 2 storyformats.
https://marketplace.visualstudio.com/items?itemName=cyrusfirheir.twee3-language-tools
MIT License
47 stars 16 forks source link

Make italics/bold specific to formats to better work when in projects with more than just Twee #70

Closed MinusGix closed 2 years ago

MinusGix commented 2 years ago

Makes the Ctrl+I and Ctrl+B keybinds for bold and italics specific to story formats in the package.json. This makes so that other keybindings will still work in other files in the same project (such as javascript or markdown).
This duplicates them because currently the when clauses https://code.visualstudio.com/api/references/when-clause-contexts#conditional-operators don't allow parentheses and so representing it in one entry is probably not possible (unless their binding of operators is weird).