A previous forum post here which I quite liked suggested mapping the “`~” key as follows: tap → escape, long press → backtick, shifted → tilde. So I have
ifShift final holdKey S-graveAccentAndTilde
ifTap final tapKey escape
holdKey graveAccentAndTilde
working great (now I’m fussing with holdTimeout
and doubletapTimeout
).
What would really make this sweet is if I could also have doubletap → three-backticks. For markdown code blocks, of course.
Can’t figure out how to do it, especially since I’ve mapped a single tap to escape not backtick.
Should I be able to do this with ifGesture timeoutIn
or ifInterrupted
or something else???
(Problem of course is that if single tap goes to escape then double tap would go to escape backtick backtick backtick - I need to not have that first escape be emitted if doubletap.)
(I suppose I can make it work with tap → backtick and hold → escape, but really I hit escape a lot (emacs user here, among other things)).