Skip to content

Conversation

@nome
Copy link
Contributor

@nome nome commented Oct 13, 2025

Closes #16544

Release notes summary - What our users need to know

  • str replace now accepts a closure that computes the replacement value for each match

Tasks after submitting

@nome nome marked this pull request as ready for review October 14, 2025 17:07
@fdncred fdncred added notes:ready The "Release notes summary" section of this PR is ready to be included in our release notes. notes:additions Include the release notes summary in the "Additions" section labels Oct 23, 2025
@fdncred fdncred merged commit 487e2ea into nushell:main Oct 23, 2025
16 checks passed
@fdncred
Copy link
Contributor

fdncred commented Oct 23, 2025

Thanks

@github-actions github-actions bot added this to the v0.109.0 milestone Oct 23, 2025
@fdncred fdncred added the A:commands General additions or changes to commands label Oct 23, 2025
@nome nome deleted the issue16544 branch October 25, 2025 11:30
fdncred pushed a commit that referenced this pull request Nov 10, 2025
Thanks to #16854, I added
highlighting to the `std/help` like with the default `help` in
#15892. It does the same of using
`nu-highlight`, italics and in case of invalid syntax italics + dimmed.
While I was at it I added `ansi` as a search term for `config
use-colors` to make it easier to find and while searching for an `fn
search_terms` example I found out that in `to_uppercase.rs` the search
terms where all a single string so I fixed that too.

~~TODO: it seems that the types like `list<string>` are highlighted in
this but not with the default help.~~

## Release notes summary - What our users need to know
<!--
This section will be included as part of our release notes. See the
contributing guide for more details.
Please include only details relevant for users here. Motivation and
technical details can be added above or below this section.

You may leave this section blank until your PR is finalized. Ask a core
team member if you need help filling this section.
-->
Similar to the default `help`, now `std/help` will highlight code in
between backticks in the descriptions.

Example:
<img width="1068" height="333" alt="image"
src="https://github.com/user-attachments/assets/fef0b2db-0e78-4473-b540-6bf617e7fb6d"
/>

## Tasks after submitting
<!-- Remove any tasks which aren't relevant for your PR, or add your own
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:commands General additions or changes to commands notes:additions Include the release notes summary in the "Additions" section notes:ready The "Release notes summary" section of this PR is ready to be included in our release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The str replace command should support a closure as a replacement

2 participants