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

Recent commits to clear highlighting break basic functionality of clever-f #73

Open
atweiden opened this issue Oct 2, 2022 · 2 comments

Comments

@atweiden
Copy link

atweiden commented Oct 2, 2022

Commits 25e8c6b and 02e9871 break basic functionality of clever-f for me: pressing f followed by the character to find, making a change, then pressing f again, and .-repeating the previous change, etc.

Unfortunately, the only way I’ve been able to get the old behaviour back is to revert to fd370f2.

atweiden added a commit to atweiden/clever-f.vim that referenced this issue Oct 2, 2022
@rhysd
Copy link
Owner

rhysd commented Oct 3, 2022

what does your 'break' mean? it works fine on my local. describe

  1. reproducible steps
  2. actual behavior
  3. expected behavior

@atweiden
Copy link
Author

atweiden commented Oct 3, 2022

Vim buffer example.

mutable_files="
 /usr/lib/modules/${_kernver}/modules.builtin.bin
 /usr/lib/modules/${_kernver}/modules.builtin.alias.bin
 /usr/lib/modules/${_kernver}/modules.softdep
 /usr/lib/modules/${_kernver}/modules.dep
 /usr/lib/modules/${_kernver}/modules.dep.bin
 /usr/lib/modules/${_kernver}/modules.symbols
 /usr/lib/modules/${_kernver}/modules.symbols.bin
 /usr/lib/modules/${_kernver}/modules.alias
 /usr/lib/modules/${_kernver}/modules.alias.bin
 /usr/lib/modules/${_kernver}/modules.devname"

Expected behaviour.

Using clever-f and vim-surround:

  • On line 0, column 0: press f { to find first opening curly brace ({)

  • With Vim cursor on first opening curly brace ({): Delete surrounding curly braces (ds{)

  • Press f to move Vim cursor to next opening curly brace

  • Press . to dot-repeat previous command (delete surrounding curly braces)

  • Press f to move Vim cursor to next opening curly brace

  • Press . to dot-repeat previous command (delete surrounding curly braces)

  • etc

Actual behaviour.

  • On line 0, column 0: press f { to find first opening curly brace ({)

  • With Vim cursor on first opening curly brace ({): Delete surrounding curly braces (ds{)

  • Press f, but need to type { again to find next opening curly brace.

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