-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
autocmd: RecordingEnter, RecordingLeave ("macro" events) #15407
Conversation
a2b4766
to
43c7fae
Compare
18e0e19
to
e2f2a0f
Compare
e2f2a0f
to
18ac947
Compare
18ac947
to
271904e
Compare
Maybe |
Oh indeed this should be removed |
c07e425
to
6f8c532
Compare
This function is used the get the last recorded register.
6f8c532
to
eda025f
Compare
This makes the autocommand fire just before setting reg_recorded to reg_recording, this way we clearly show that we are actually just before actually quitting the recording mode.
I should have addressed all the comments, so I think I just need @justinmk 's approval on this and we'll be good to go ! |
There are still some references to the old
There are also a lot of oldtests failing because they use |
@vigoux Thanks for working on this! A few days ago I had an idea of doing something which would need such events so really happy to see this here :) |
I think the oldtest failures can be solved by mapping |
Hey sorry for the delay, you can of course take this PR over, and you can drop me an email whenever you need any help / guidance, and I'll try my best to help you out. Thanks for taking that over BTW ! |
The pattern is the current file name, and | ||
|reg_recording()| is the current register that | ||
is used. | ||
*RecordinLeave* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just found a typo here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in #16684
Moved to #16684. |
Add some autocmds to determine when the user is recording macros.
TODO:
RecordingStart
andRecordingStop
autocmdsreg_recorded()
, to query what was the latest recorded registerFixes partially #15404, cc @clason @justinmk