use PressAndHold.app for intput
Feature Request
Summary
What is the feature you'd like to request?
Most applications on MacOS (Firefox, BBEdit, Pages, Textedit, ... just to name a few) employ an application called PressAndHold (https://www.sir-apfelot.de/en/mac-press-and-hold-for-accents-18974/) for interfacing with the keyboard. This works like this:
Whenever I press a vocal letter (say i for a second or so, a small window pops up where I can choose between various accented versions of this character. In the case of i, the list contains î, ï, í, ī and ì, and typing a number from 1 to 5 selects which of those characters I want to actually enter. When I press an interpunction character (say - or .) and hold it, automatic key repeat starts (--------------........). This is reasonable and handy.
In iTerm2, press and hold a key ALWAYS causes a key repetition to occur. It would be great to have the press-and-hold behaviour described above instead.
Alternatives
Depending on the kind of key to generate, there can be alternatives. For instance in order to get the character é, I can type a the character ´ followed by the key e. This works since ´ is a so called dead key. In order to get the character ö, it's easy for me, since I have a German keyboard, which directly represents this character. However if I want to get the character ō, I'm out of luck. I have to fire up some texteditor, enter there the ō and copy and paste it into iTerm2.
Concerns
Perhaps not anybody will need or like PressAndHold, therefore I feel that this should be configurable in the Preferences.