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

Bracketed paste doesn't work during macro recording #28561

Open
schweikert opened this issue Apr 29, 2024 · 1 comment
Open

Bracketed paste doesn't work during macro recording #28561

schweikert opened this issue Apr 29, 2024 · 1 comment
Labels
bug issues reporting wrong behavior clipboard clipboard, paste macros
Milestone

Comments

@schweikert
Copy link

Problem

When I use Neovim in a terminal and copy paste some text in insert mode, I expect the effect to be more or less as if I wrote that text with the keyboard instead of pasting it. When recording a macro, that's not the case: if I record a macro and paste some text (for example to add a line of text) during the recording, then that text is not added when executing the macro.

Steps to reproduce

  • Copy some text to the clipboard
  • Start a terminal that supports bracketed paste mode (I tested with gnome-terminal and wezterm)
  • Start Neovim (nvim --clean)
  • Start a macro: [q][q]
  • Start insert mode: [i]
  • Paste the text in the terminal with [Ctrl-Shift-V]
  • Exit insert mode and stop the macro: [Esc], [q]
  • Replay the macro: [@][q]

Result: the text is not added again.

Expected behavior

The macro should add the text that was copy-pasted during the recording.

Neovim version (nvim -v)

v0.9.6-dev-18+g0ef27180e

Vim (not Nvim) behaves the same?

No (Vim 9.1)

Operating system/version

Debian testing

Terminal name/version

gnome-terminal 3.50.1

$TERM environment variable

xterm-256color

Installation

Build from repo (0.9 branch)

@schweikert schweikert added the bug issues reporting wrong behavior label Apr 29, 2024
@zeertzjq zeertzjq added clipboard clipboard, paste macros labels Apr 29, 2024
@justinmk justinmk added this to the backlog milestone Apr 29, 2024
@clason

This comment was marked as resolved.

@neovim neovim deleted a comment from SophonieBouye May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior clipboard clipboard, paste macros
Projects
None yet
Development

No branches or pull requests

4 participants