susam / devil

Emacs minor mode that intercepts and translates keystrokes to provide a modifier-free non-modal editing experience
https://susam.github.io/devil/
Other
169 stars 10 forks source link

self-insert type command seems to not working as expected #14

Open rickyson96 opened 1 year ago

rickyson96 commented 1 year ago

Hi, first of all I want to thank you for the package. It's truly amazing! I was skeptical at first, because it's twisted, but after dabbling with the devil, I find that it's charm is irresistible. 😂

Okay enough of my ramblings, I found some issue, which I think is because of the self-insert type behaviour in certain package. For instance, on vterm, C-d is vterm--self-insert which, normally, would pass C-d key to the terminal instance. But with devil, it only insert d char. I think it's because the self-insert part is only detecting last typed key (which is d), so the command interpretes that I typed only d instead of the expected C-d.

It seems that it is the same case for term and eat (and maybe other similar package?), and only on the self-insert type of bindings.

It seems like this is the expected behaviour, but I wonder if there's something that can be done, to truly use emacs with the devil's power? 🤣