Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
niquola opened this issue Mar 6, 2022 · 2 comments
Open

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

niquola opened this issue Mar 6, 2022 · 2 comments

Comments

@niquola
Copy link

niquola commented Mar 6, 2022

No description provided.

@mogenslund
Copy link
Owner

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 added a commit that referenced this issue Mar 11, 2022
@mogenslund
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants