-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Repeat last command #501
Comments
Helix does have the dot repeat, but it currently only tracks the last insert mode change (vim tracks every change like ones made with |
Yeah this is equivalent to kakoune's |
How much utility is there in the (I realize vim also has a macro system, and that doesn't obviate the utility of |
Just adding a vote for normal mode |
@heliostatic For this I think you would be much better served with |
Movement stuff should be covered under |
We have both |
Maybe we should have Even if it's not made the default, refactoring the current |
+1 for this. In it's current state Making |
+1 for this. One of the main reasons I can't use any other text editor besides vim is the repeat command. It appears that we are utilising three commands in Helix to do the same task. Having the ability to repeat the last command would be fantastic if we could alter text case, add/update/delete text, edit surround, etc. |
On the line where the cursor currently is, as if you pressed From Practical Vim (2nd ed):
I hope this feature gets the priority it deserves. |
And to re-iterate: Helix is based on kakoune bindings, so Practical Vim has no relevance here.
Think about it. The selection first model requires you to build a bunch off selections first, then operate on them. It's much harder to determine exactly what you want to repeat since selecting is also part of movement. Do we repeat just the last selecting operation, then the action? That likely won't be what you want. Do we repeat all selecting operations since the last change? Well that won't be what you want either since it'll involve scrolling and other movement. |
Yes, I agree this breaks the selection-first model. But under this perspective, so do macros, a feature present in Kakoune and experimental here. The dot command could be seen as an automatically recorded macro for the last action, as if we pressed again the same keys with one single keystroke. I think at least it would be worth it as an additional command Also thanks for the quick reply! I'm sorry if I'm missing something, I didn't use Kakoune at all. |
I would have totally expected For example:
That being said, I was very surprised to see that |
vim has this feature where the last command can be repeated by pressing
.
. This is very useful and I would love to see this in this editor aswell.The text was updated successfully, but these errors were encountered: