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

Clipboard paste problems #6151

Closed
leedonhyun opened this issue Mar 1, 2023 · 4 comments
Closed

Clipboard paste problems #6151

leedonhyun opened this issue Mar 1, 2023 · 4 comments
Labels
C-bug Category: This is a bug

Comments

@leedonhyun
Copy link

Summary

hi.
If i copy from the clipboard, it will be pasted strangely.

Press ctrl + ins in insert mode.

clipboard

Reproduction Steps

I tried this:

  1. hx

I expected this to happen:

Instead, this happened:

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

windows

Terminal Emulator

powershell

Helix Version

helix 22.12 (8dab8a0)

@leedonhyun leedonhyun added the C-bug Category: This is a bug label Mar 1, 2023
@leedonhyun leedonhyun changed the title Clipboard Copy Problems Clipboard paste problems Mar 1, 2023
@CptPotato
Copy link
Contributor

CptPotato commented Mar 1, 2023

Pasting in the terminal usually gets interpreted as individual key presses, so the editor automatically inserts matching brackets and indentation as if you were typing them by hand.

To paste from clipboard use spaceP / spacep.

@leedonhyun
Copy link
Author

Thank you.

@markus-bauer
Copy link

Crossterm has the option to enable bracketed paste.
https://docs.rs/crossterm/latest/crossterm/event/struct.EnableBracketedPaste.html

But I don't know if windows terminal supports that, or if helix processes these events:
https://docs.rs/crossterm/latest/crossterm/event/enum.Event.html#variant.Paste

@dead10ck
Copy link
Member

dead10ck commented Mar 3, 2023

Helix supports bracketed paste since #3233, but the terminal emulator must also support it for it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

4 participants