Open rajmondx opened 1 year ago
Thanks for the contribution, this would be a pretty cool feature to see integrated
Thanks for the contribution, this would be a pretty cool feature to see integrated
Check "Alternatives": I wrote a script which you could add to your own init.js
, its a bit hacky and it could be done better (eg. if your init.js
gets bigger such "little scripts" end up messy or you could increase the performance by using keyid instead of strings etc.) but it does what its supposed to do.
I don't think this is supported by Electron or browsers in general (trigger an event when a modifier key is pressed). If they don't send us the keystroke, there's nothing we can actually do...
One thing they you CAN do already is double tap any key that's not a modifier. For example, the keystroke 'esc esc' works today (double tap escape key).
Have you checked for existing feature requests?
Summary
Allow users to double tap any button (eg. as IDEA allows it with their "double shift") something like this
What benefits does this feature provide?
No big deal. I would just love to see this feature because of the muscle memory gained in IDEA, hard to not double press shift and somehow I believe some idea users might not like any ide if its not possible to configure double tap.
Any alternatives?
Edit
File > Init Script (init.js)
:Use in
File > Keymap (keymap.cson)
for example:hint. Check
allowKeystrokeResolverOnlyFor
to allow any other buttons thanshift
for double tap (be caution with buttons likebackspace
)hint. You need to use
+
instead of-
inkeymap.cson
because-
doesn't work for double tap (it seems that pulsar-edit is interpretingshift-shift
like a single button press).Other examples:
No response