zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.93k stars 1.17k forks source link

Macros don't record paste operations #3238

Closed dakennedyd closed 5 months ago

dakennedyd commented 5 months ago

Description of the problem or steps to reproduce

When using macros they record copy operations but not paste operations.

Specifications

Commit hash: 68d88b57 OS:Ubuntu 22.04 Terminal:xterm

dakennedyd commented 5 months ago

Turns out my terminal was setup to paste with ctrl-v so the shortcut was being intercepted by the terminal, so micro could not catch it. Sorry about that. I'm closing the issue.

dmaluka commented 5 months ago

Actually micro still catches it, but as a "paste event", not as a normal key event.

So in fact we might consider implementing recording those terminal's paste events together with key events (so that e.g. paste via middle mouse click would be recorded as well), if there are users that want it.