I recently wrote a chrome extension that lets us use keyboard shortcuts in the DIC editor. I understand that the editor already has some shortcuts that work in Firefox. However, I've tested it in a clean Chrome and nothing happens. So, extension time!
It still needs a lot of work. Work items so far:
- works only on the main reply box. Not in edit boxes or topic creation boxes. Needs to be extended to all supported textareas. This might be hard, since some of these textareas are created dynamically. I'm confident we can make it work though.
- Configuration. I'd like to have this use a config page that stores your shortcut preferences serialized to localStorage
- Highlight and surround. There's already a function that checks if there is selected text (because ctrl-c shouldn't be blocked if it is) so we could modify the behavior to wrap selected text instead of inserting at cursor.
- anything you can come up with that makes sense
But anyway, here it is, if you want to use it or help me work on it. I'm going to feature this topic and mark it a challenge.
Go ahead and fork it on github. If you're interested in doing a lot of work on the extension, I could add you as a contributor so you could merge pull requests too.
If you don't like using github, you could post your changes here, but that's a lot more for me than if you submit a pull request.
Discuss any changes or ideas in this thread. Let's make something really useful!
I also have the DIC-Chrome extension that auto checks your subscriptions every five minutes too, in case you're interested.
If you want to use it or you'd like to assist with this project, feel free. Just let me know here (or on github). If this gains any traction, we may merge the two projects into one extension.
If you need to know how to load extensions that are under development, you can take a look here:
Thanks! I'd also appreciate feedback.