zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.52k stars 3.02k forks source link

Vim: Ability to edit macros #16733

Open feketegy opened 2 months ago

feketegy commented 2 months ago

Check for existing issues

Describe the feature

I tend to edit my macros in Vim but this feature is missing from Zed.

Macros are recorded in registers in Vim, but if I record some keystrokes in Zed in the a register, putting out the contents after the recording does not write out anything.

Example:

If I press qa⏎ then record some keystrokes then press q to save it, the macro is in the a register so if I press "ap it should write out the contents of the register but it does not write out anything.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

JonGretar commented 2 months ago

I bet this is complicated as I think Zed records actions, not keystrokes.

ConradIrwin commented 2 months ago

Currently it is. That said, I think if we land #16704 or similar we might be able to replay input events accurately enough to just record and replay the keystrokes.