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

corrupts nushell colored output #13221

Open
masriomarm opened this issue Mar 29, 2025 · 2 comments
Open

corrupts nushell colored output #13221

masriomarm opened this issue Mar 29, 2025 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@masriomarm
Copy link

masriomarm commented Mar 29, 2025

Summary

using nushell, attempting to insert output of colored text as version. when trying to traverse or alter the text it corrupts.

Reproduction Steps

I tried this:

  1. Make sure nushell is installed, and set $env.config.use_ansi_coloring = true
  2. set helix shell to
[editor]
shell                  = ["nu", "-l", "-c"]
  1. hx
  2. insert-ouput version

I expected this to happen:
getting colored input and can be traversed and altered normally.

Instead, this happened:
getting colored input but traversing and altering corrupts text as this asciinema link

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

Linux

Terminal Emulator

wezterm 20250320_072107_a8735851

Installation Method

dnf

Helix Version

helix 25.01.1 (e7ac2fc)

@masriomarm masriomarm added the C-bug Category: This is a bug label Mar 29, 2025
@RoloEdits
Copy link
Contributor

Using latest master and version 0.103.0 I cannot reproduce this.

Image

@masriomarm
Copy link
Author

masriomarm commented Mar 29, 2025

yes, I just noticed that setting $env.config.use_ansi_coloring = "auto" in nushell, removes the ansi coloring when invoked from helix, which returns normal text as insert-output date now. Not sure if the helix should deal with the ansi coloring issue. Will leave it up to the maintainers.

@RoloEdits , if you set $env.config.use_ansi_coloring = true will generate the ansi coloring into helix and cause the issue in the asciinema attached. Will update steps.

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

2 participants