Socket
Book a DemoInstallSign in
Socket

kitbook-vscode

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitbook-vscode

Convenient keybindings and snippets for Kitbook, a component workbench for Svelte

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 29 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts