Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Windows: clipboard-win doesn't make sense for helix editor in SSH session. #9603

Closed
noktoborus opened this issue Feb 11, 2024 · 3 comments
Closed
Labels
C-bug Category: This is a bug

Comments

@noktoborus
Copy link
Contributor

Summary

I propose to respect 'SSH_CLIENT' environment variable, e.g. use 'termcode' or another clipboard provider under windows if variable is set.

Reproduction Steps

Client computer:

I tried this:

  1. login to windows host using ssh
  2. hx
  3. type worlds
  4. select all
  5. type :clipboard-yank
  6. open notepad
  7. try to paste

I expected this to happen:

Copyied worlds appears in notepad

Instead, this happened:

nothing

Similar steps if I use helix editor in wsl environment (builded for linux), the text is copied to the clipboard.

Helix log

Windows host through ssh:

> hx --health
...
Clipboard provider: clipboard-win
System clipboard provider: clipboard-win
...

WSL-host works both if xclip is installed or not installed (proverd: xclip or termcode)

Platform

Linux / Windows / Android

Terminal Emulator

termux

Installation Method

cargo install

Helix Version

helix 23.10 (a1272bd)

@noktoborus noktoborus added the C-bug Category: This is a bug label Feb 11, 2024
@kirawi
Copy link
Member

kirawi commented Feb 11, 2024

Duplicate of #8826

@kirawi kirawi marked this as a duplicate of #8826 Feb 11, 2024
@kirawi kirawi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2024
@kirawi kirawi reopened this Feb 11, 2024
@kirawi kirawi marked this as not a duplicate of #8826 Feb 11, 2024
@kirawi

This comment was marked as resolved.

@kirawi
Copy link
Member

kirawi commented Feb 12, 2024

I feel like this would be solved by the linked issue but I'll leave this to the discretion of the maintainers if they believe there is a way to support this without requiring configuration.

@helix-editor helix-editor locked and limited conversation to collaborators Apr 8, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10280 Apr 8, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants