From 26170556133fc41e132c2730e1dfa95539479f24 Mon Sep 17 00:00:00 2001 From: Knut Franke Date: Sat, 20 Sep 2025 21:11:32 +0200 Subject: [PATCH] Fix references to renamed range command Since nu 0.102.0, the range command has been renamed to slice. Two pages in the book still referenced the old command name (with corresponding broken hyperlinks). --- book/navigating_structured_data.md | 2 +- book/nushell_map.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book/navigating_structured_data.md b/book/navigating_structured_data.md index 4d9a890921e..7dd4fe51f32 100644 --- a/book/navigating_structured_data.md +++ b/book/navigating_structured_data.md @@ -344,4 +344,4 @@ $with_default_value.1.a ## Other commands for accessing structured data - [`reject`](/commands/docs/reject.md) is the opposite of `select`, removing the specified rows and columns -- [`range`](/commands/docs/range.md) specifies the rows of a list or table to select using a [`range`](./types_of_data.md#ranges) type +- [`slice`](/commands/docs/slice.md) specifies the rows of a list or table to select using a [`range`](./types_of_data.md#ranges) type diff --git a/book/nushell_map.md b/book/nushell_map.md index 5d3fcc6cdfc..e108663a54a 100644 --- a/book/nushell_map.md +++ b/book/nushell_map.md @@ -37,8 +37,7 @@ The idea behind this table is to help you understand how Nu builtins and plugins | [`transpose`](/commands/docs/transpose.md) | `pivot` | | | | | [`ps`](/commands/docs/ps.md) | | | `Get-Process`, `ps`, `gps` | `ps` | | [`pwd`](/commands/docs/pwd.md) | | | `Get-Location`, `pwd` | `pwd` | -| [`range` (command)](/commands/docs/range.md) | `limit x offset y`, `rownumber` | `ElementAt` | `[x]`, indexing operator, `ElementAt` | | -| [`range` (type)](types_of_data.html#ranges) | | `Range` | `1..10`, `'a'..'f'` | | +| [`range`](types_of_data.html#ranges) | | `Range` | `1..10`, `'a'..'f'` | | | [`reduce`](/commands/docs/reduce.md) | | `Aggregate` | | | | [`rename`](/commands/docs/rename.md) | | | `Rename-Item`, `ren`, `rni` | `mv` | | [`reverse`](/commands/docs/reverse.md) | | `Reverse` | `[Array]::Reverse($var)` | | @@ -49,6 +48,7 @@ The idea behind this table is to help you understand how Nu builtins and plugins | [`skip`](/commands/docs/skip.md) | `where row_number()` | `Skip` | `Select-Object -Skip` | | | [`skip until`](/commands/docs/skip_until.md) | | `SkipWhile` | | | | [`skip while`](/commands/docs/skip_while.md) | | `SkipWhile` | | | +| [`slice`](/commands/docs/slice.md) | `limit x offset y`, `rownumber` | `ElementAt` | `[x]`, indexing operator, `ElementAt` | | | [`sort-by`](/commands/docs/sort-by.md) | `order by` | `OrderBy`, `OrderByDescending`, `ThenBy`, `ThenByDescending` | `Sort-Object`, `sort` | `sort` | | [`str`](/commands/docs/str.md) | String functions | `String` class | `String` class | | | [`str join`](/commands/docs/str_join.md) | `concat_ws` | `Join` | `Join-String` | |