Name: Kaleidoscope-Redial
Owner: Keyboardio
Description: A Kaleidoscope plugin that lets you "redial" the last pressed key, whatever it may be.
Created: 2018-04-24 06:12:13.0
Updated: 2018-05-15 05:11:30.0
Pushed: 2018-05-15 05:11:30.0
Homepage: null
Size: 18
Language: C++
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
If you ever wanted to just repeat the last key pressed, no matter what it was, this plugin is made for you. It allows you to configure a key that will repeat whatever the last previously pressed key was. Of course, one can limit which keys are remembered…
To use the plugin, we'll need to enable it, and configure a key to act as the “redial” key. This key should be on the keymap too.
lude <Kaleidoscope.h>
lude <Kaleidoscope-Redial.h>
lude <kaleidoscope-Ranges.h>
{
DIAL = kaleidoscope::ranges::SAFE_START,
ine Key_Redial (Key) {.raw = REDIAL}
lace Key_Redial somewhere on the keymap...
IDOSCOPE_INIT_PLUGINS(Redial);
setup() {
leidoscope.setup();
dial.key = Key_Redial;
bool shouldRemember(Key mapped_key)
If one wants to change what keys the plugin remembers, simply override the
kaleidoscope::Redial::shouldRemember
function. Whenever a key is to be remembered, this function will be called with the key as argument. It should returntrue
if the key should be remembered (and repeated by Redial),false
otherwise.By default, the plugin will remember alphanumeric keys only.
The Redial
object has only one property, the key to trigger it.
.key
The key to trigger the redial effect. Be aware that whatever key you specify here, will have its action shadowed by the redial functionality. Choose something unused, see the example sketch for one way to do that.
There is no default.
Starting from the example is the recommended way of getting started with the plugin.