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

Show keys in the status line while recording macros. #1273

Open
Delapouite opened this issue Mar 9, 2017 · 2 comments · May be fixed by #2104
Open

Show keys in the status line while recording macros. #1273

Delapouite opened this issue Mar 9, 2017 · 2 comments · May be fixed by #2104

Comments

@Delapouite
Copy link
Contributor

Delapouite commented Mar 9, 2017

Hi

While crafting macros you often have to cross your fingers, hoping everything will work as expected after typing a long sequence of keys.
I think the main issue of this syndrome is that during the recording, we have no trace of what has been done so far.

Kakoune sets live-feedback as one of its core value, but cruelly leaves us partially in the dark for macros.
Currently, after pressing Q, a mention [ recording (<reg>) ] appears in the status line.

A nice improvement would be to also display (on the right?) the keys sequence of the macros while it's being recorded.
This way you can pause your flow of thoughts midway during macro recording, and visually check that the keys you recorded so far are good.

I guess this may be implemented right now by showing the content of the chosen register in a custom modelinefmt #1267
But it would be great to have this improved interactive behavior by default.

@danr
Copy link
Contributor

danr commented Mar 9, 2017

I tried to adding a hook like so:

hook -group test buffer NormalIdle .* %{echo %reg{@}}

but alas, the @ register is not set until the macro is finished! So there might be an easy fix here if the register is updated after each key-press.

@lenormf
Copy link
Contributor

lenormf commented Mar 14, 2017

#1277 might provide a beginning of solution, if you make it so a menu containing the contents of the current register pops up in macro recording mode. Hardly doable as of today though.

@Delapouite Delapouite linked a pull request Jun 3, 2018 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants