How to implement "fd" cord as <esc> from spacemacs?
niquola opened this issue · 2 comments
niquola commented
How to implement "fd" cord as from spacemacs?
mogenslund commented
Thank you for your request. I have installed Spacemacs to investigate how "fd" works. I will see what I can do.
My first simple attempt will be to just output "f" when f is pressed and store a timestamp.
When d is pressed, if the difference between current time and the timestamp is less than some limit, the "f" should be deleted and mode set to normal. Otherwise a "d" will be output.
mogenslund commented
I have committed an attempt now. The way I implemented it, you have to touch "f" first (or at least not last). Making "df" work the same way as "fd", might not be difficult. I have added the solution as "default" behavior.
If it annoys other users, let me know, then I will make it easier to disable.