kitbook-vscode
v0.0.1
Published
Convenient keybindings and snippets for Kitbook, a component workbench for Svelte
Downloads
1
Readme
Kitbook VSCode Extension
At present this extension serves to easily allow you to toggling on/off the treatment of markdown files as svelte
files to enable you to go back and forth between markdown and svelte language services in the same .md
file.
"files.associations": {
"*.md": "svelte" // toggles this line on/off
},
After installing the extension (manually install from the vsix
file in this package until extension is placed into the store), add the following keybinding (adjust as you desire) to your keyboard shortcuts by opening the Command Palette (Ctrl+p on Windows) and select Preferences: Open Keyboard Shortcuts (JSON)
. Add the following:
{
"key": "alt+x",
"command": "kitbook.toggleMdFileAssociation"
}
Then any time you press that keybinding, the association will be flipped.
Requirements
For use with Kitbook
TODO: Backlinking
\[\[(.+?)\]\]
will detect wikilinks
- https://github.com/hikerpig/foam-template-gatsby-kb
- https://github.com/hikerpig/gatsby-project-kb
- https://github.com/mathieudutour/foam-gatsby-template
Release Notes
Not yet published but you can install it manually from the .vsix
file in this package.
Misc
Learning from https://code.visualstudio.com/api and https://github.com/rebornix/vscode-toggle, https://medium.com/hack-visual-studio-code/toggle-any-setting-in-vs-code-using-keyboard-shortcut-arguments-cdb5ddc56955, https://github.com/unocss/unocss/blob/main/packages/vscode/README.md, https://github.com/sebsojeda/vscode-svx, https://github.com/Microsoft/vscode-sublime-keybindings