@yariplus Nice short, I will try to update my plugin to the new style 🙂
Is it easy to read a json file from disk when you visit a page, Lets sat that you have somthing in stuff.json and that file is updated now an then on the disk.
This plugin isn't published yet, still a work in progress.
So far, this binds
alt-n to open the composer for repling / posting a new topic. Hopefully more keyboard shortcuts to come in the future!
To use, clone into the node_modules directory:
git clone https://github.com/psychobunny/nodebb-plugin-mousetrap.git node_modules/nodebb-plugin-mousetrap
Source code on Github
I'll be using this soon.
I could definitely use a Ctrl+Enter to post
EDIT * Scratch That. Ctrl+Enter works.
could we add
ctrl+b when in composer to bold stuff or is that not the realm of your plugin and it's composers area?
Yeah I imagine it would be fairly straightforward. Just add a new rule for ctrl-b and then check if the textbox in composer is active. If so take selected text and wrap it with asterisks using this module