Skip to content

let more commands use row conditions - #18844

Merged
fdncred merged 1 commit into
nushell:mainfrom
Mrfiregem:more-row-conds
Sep 2, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
Mrfiregem:more-row-conds

Conversation

@Mrfiregem

@Mrfiregem Mrfiregem commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Based on fdncred's comment in #18353, adds row conditions to every other command using a predicate-like closure.

User-facing changes (Release notes)

Allow take until, take while, skip until, skip while, and chunk-by to use row condition syntax alongside closures.

Additional notes

Updated examples cover most test cases, but waiting on writing tests depending on if there are any more additions / removals.

It looks like the -i flag of take until and take while must be proved to the command before the predicate even it it's given as a closure.

@pickx

pickx commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

request: also add this to iter find and iter find-index. (from std/iter)
especially the first one is quite useful, but the syntax is so heavy I rarely bother using it.

@fdncred fdncred added notes:ready Indicates Ready for Release notes notes:additions Noted in "Additions" section labels Sep 2, 2026
@fdncred
fdncred merged commit 9d0efc8 into nushell:main Sep 2, 2026
15 checks passed
@fdncred

fdncred commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Thanks

@github-actions github-actions Bot added this to the v0.116.0 milestone Sep 2, 2026
@Mrfiregem
Mrfiregem deleted the more-row-conds branch September 2, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:additions Noted in "Additions" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants