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
(ls | sort-by name)
and other subexpressions lose ls_colors
#4501
Comments
I have a hunch. |
Yup -
The |
Is that last image after you aliased |
yup - i just put an EDIT above it to explain it. But before i aliased it, the colors are there. |
ls | sort-by name
when called via alias loses ls_colors(ls | sort-by name)
and other subexpressions lose ls_colors
I don't see where there is an available |
What's the status of this issue? |
it's still not fixed |
has any plan for this issue? |
There are other priorities at the moment. We're always open to people making nushell better with PRs. |
I would like to help, but I'm afraid that this is beyond my current level. looks like it's not simple based on this thread |
# Description Adds a `profile` command that profiles each pipeline element of a block and can also recursively step into child blocks. # Limitations * It is implemented using pipeline metadata which currently get lost in some circumstances (e.g., #4501). This means that the profiler will lose data coming from subexpressions. This issue will hopefully be solved in the future. * It also does not step into individual loop iteration which I'm not sure why but maybe that's a good thing. # User-Facing Changes Shouldn't change any existing behavior. # Tests + Formatting Don't forget to add tests that cover your changes. Make sure you've run and fixed any issues with these commands: - `cargo fmt --all -- --check` to check standard code formatting (`cargo fmt --all` applies these changes) - `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect` to check that you're using the standard code style - `cargo test --workspace` to check that all tests pass # After Submitting If your PR had any user-facing changes, update [the documentation](https://github.com/nushell/nushell.github.io) after the PR is merged, if necessary. This will help us keep the docs up to date. --------- Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
|
and |
JT explains why here #4501 (comment) - it would be so nice to have this fixed once and for all. |
👋 I was encouraged in Discord to add a case I hit to this issue.
|
Seems like this is fixed in 0.92. |
Not all of it, you can't even do the alias that I originally mentioned anymore. However, nushell has got better about passing metadata around which affects the highlighting. |
Fair, the nature of aliases changed since that time (#8123), so does it really matter? I thought this issue was about pipelining in subexpressions loosing color metadata. I'm just happy that is working now, so thanks <3 |
It's better but it's not complete. I saw one the other day that was still broken and made me think we need to have a |
Describe the bug
alias ls = (ls | sort-by name)
names are not colored with ls_colors
How to reproduce
see above
Expected behavior
retain ls_colors
Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: