kitbook-vscode

0.0.1 • Public • Published

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i kitbook-vscode

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

18.4 kB

Total Files

15

Last publish

Collaborators

  • jacobbowdoin