contour icon indicating copy to clipboard operation
contour copied to clipboard

improve IME on MacOS

Open christianparpart opened this issue 1 year ago • 5 comments

Seems like MacOS's IME is hardcoded by long-pressing some keys to trigger the variations of such keys (e.g. e to allow a variation like ë etc). But that conflicts with key-repeat events.

Since key-repeat is something users might want to keep doing, we need to find a way working around that problem. We could find out (the manual way) which keys allow these variations by long-pressing them, and then simply disable key-repeat event on those keys, as it would be conflicting (or confusing) with the IME popup coming up each time.

Keys found: a,c,e,i,l,n,o,s,u,y,z, whereas l and y have only one variation (itsel - why?). We could also add a config option to allow disabling key repeat and/or IME alltogether.

christianparpart avatar Oct 18 '23 14:10 christianparpart

Look into how iTerm handled it, if at all

uspasojevic96 avatar Oct 18 '23 14:10 uspasojevic96

Look into how iTerm handled it, if at all

just checked. they don't do IME at all, apparently.

p.s.: I think on MacOS we should probably also default to that option, at least, by default, key-repeat should work, because IMHO that is what terminal users would expect the most.

christianparpart avatar Oct 18 '23 15:10 christianparpart

Do I understand correctly that there is currently no way to change this to accept "key-repeat"?

jimmyjansen93 avatar Jan 30 '24 21:01 jimmyjansen93

Hey @jimmyjansen93. Many thanks for your interest in contour. Yes, currently there is no configurability on that. This is mostly due to the fact that I was lagging a good proposal on what users would want.

IMHO I think base key repeat is more relevant than IME input on MacOS. I wonder though if we should provide some kind of config option as well as key bindable toggle.

christianparpart avatar Jan 30 '24 21:01 christianparpart

Related issue in Warp : https://github.com/warpdotdev/Warp/issues/3191 not sure how to set it specific for contour, but system wide setting is defaults write -g ApplePressAndHoldEnabled -bool false

Yaraslaut avatar Aug 08 '24 18:08 Yaraslaut