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

Allow smart_rename's grr mapping to be repeatable using '.' #29

Closed
daedroza opened this issue Dec 29, 2021 · 4 comments · May be fixed by #36
Closed

Allow smart_rename's grr mapping to be repeatable using '.' #29

daedroza opened this issue Dec 29, 2021 · 4 comments · May be fixed by #36
Labels
enhancement New feature or request

Comments

@daedroza
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I am using / to find a function and use smart_rename to modify the function name. Now I am find next usage and attempting to use '.' to rename it exactly the same as previous one. I don't intend to use sed as I don't want to perform the name change through out the file. Few instances that can be could rotated using N and n, then replaced using '.' that previous smart_rename had stored for.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Implement '.' for repeating smart_rename.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I couldn't think of any, hence none.

Additional context
Add any other context or screenshots about the feature request here.
None.

@daedroza daedroza added the enhancement New feature or request label Dec 29, 2021
@daedroza daedroza closed this as completed Jan 6, 2022
@AckslD
Copy link

AckslD commented May 25, 2022

Hi @daedroza! Did you find a solution for this? I was looking for the same and found this issue.

@daedroza
Copy link
Author

I am not sure how I got it to work but you can try this https://github.com/tpope/vim-repeat

@AckslD
Copy link

AckslD commented May 25, 2022

Thanks for your reply! Maybe I'm missing something but wouldn't treesitter-refactor need to support vim-repeat natively for that to work? Ie by calling repeat#set by the end of the mapped function?

@daedroza
Copy link
Author

I just use change-in-word motion and repeat it that is much easier and support larger array of functions such as deletion, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants