liquid icon indicating copy to clipboard operation
liquid copied to clipboard

How to implement "fd" cord as <esc> from spacemacs?

Open niquola opened this issue 3 years ago • 2 comments

niquola avatar Mar 06 '22 15:03 niquola

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 avatar Mar 07 '22 06:03 mogenslund

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.

mogenslund avatar Mar 11 '22 19:03 mogenslund