inkdropapp / inkdrop-spell-checker

Spell checker plugin for inkdrop
https://www.inkdrop.app/
MIT License
10 stars 5 forks source link

Adding Keybindings #13

Closed Griizz closed 2 years ago

Griizz commented 2 years ago

Adding keybindings to quickly enable/disable or change languages is probably already possible. I'm just not sure about the specific syntax. Is it possible to add a short section to the README for this?

craftzdog commented 2 years ago

You can make a command to toggle the package.

if (inkdrop.packages.isPackageActive('spell-checker')) {
  inkdrop.packages.disablePackage('spell-checker')
} else {
  inkdrop.packages.enablePackage('spell-checker')
}

Check out the documentation for more detail: https://docs.inkdrop.app/manual/the-init-file