Skip to content

Commit bb6392d

Browse files
committed
Merge branch 'main' into plugin-use-docs
2 parents c7024e1 + 304b5f9 commit bb6392d

18 files changed

+163
-219
lines changed

.vuepress/configs/sidebar/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const sidebarEn: SidebarConfig = {
4242
'/book/custom_commands.md',
4343
'/book/aliases.md',
4444
'/book/operators.md',
45-
'/book/variables_and_subexpressions.md',
45+
'/book/variables.md',
4646
'/book/control_flow.md',
4747
'/book/scripts.md',
4848
'/book/modules.md',

blog/2021-02-16-nushell_0_27.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The Nushell book received some much-needed updates. You'll notice new chapters a
3232
- [Updated section on data types](https://www.nushell.sh/book/types_of_data.html)
3333
- [A new section on creating your own commands](https://www.nushell.sh/book/custom_commands.html)
3434
- [An updated section on aliases](https://www.nushell.sh/book/aliases.html)
35-
- [A new section on working with variables and expressions](https://www.nushell.sh/book/variables_and_subexpressions.html)
35+
- [A new section on working with variables and expressions](https://www.nushell.sh/book/variables.html)
3636
- [The start of a new section on writing your own Nushell scripts](https://www.nushell.sh/book/scripts.html)
3737

3838
# Improvements

blog/2023-06-27-road-to-1_0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Today we release the 0.82 version of Nushell. Not only will it be our 65th publi
1313

1414
Nushell reached a much wider user base in the last few months. On GitHub, Nushell is now officially recognized for [syntax highlighting](https://github.com/github-linguist/linguist/releases/tag/v7.26.0) and recently passed 25,000 stars. We are also actively thinking about how we want to move towards stabilization for our 1.0 release.
1515

16-
Thus, we want to use this opportunity to share our general thoughts and announce that we will be slightly slowing down our regular release schedule.
16+
Thus, we want to use this opportunity to share our general thoughts and announce that we will be slightly slowing down our regular release schedule.
1717
Our focus going forward will be getting Nushell to a high-quality 1.0, one that has a supported language that is reliable and backward-compatible, and a high-quality shell experience to match.
1818

1919
## A four-week release schedule
@@ -35,11 +35,11 @@ Apart from rewriting the engine, it included our own line editor [reedline](http
3535
The rewrite unlocked many improvements and opportunities for valuable experimentation.
3636

3737
Since `0.60`, we achieved a much more mature system of [modules](https://www.nushell.sh/book/modules.html) and [overlays](https://www.nushell.sh/book/overlays.html) that allow you to build more composable applications in Nu.
38-
As part of this effort to strengthen the programming language chops of Nu, we also spent a lot of time finding the balance between our [functional programming philosophy of pipelined data](https://www.nushell.sh/book/thinking_in_nu.html) and the [mutation of variables](https://www.nushell.sh/book/variables_and_subexpressions.html#mutable-variables) to allow simple imperative patterns.
38+
As part of this effort to strengthen the programming language chops of Nu, we also spent a lot of time finding the balance between our [functional programming philosophy of pipelined data](https://www.nushell.sh/book/thinking_in_nu.html) and the [mutation of variables](https://www.nushell.sh/book/variables.html#mutable-variables) to allow simple imperative patterns.
3939

4040
We also saw a few efforts that didn't pan out yet. For example, we tried to integrate the [Polars](https://github.com/pola-rs/polars/) dataframe engine directly into the grammar of Nushell commands, but this left many rough edges. Thus [with version 0.76, we returned to a simpler dataframe integration](https://www.nushell.sh/blog/2023-02-21-nushell_0_76.html#dataframe-commands-are-again-explicitly-separated-from-core-nushell-commands-7998) to focus on getting the core Nushell experience right.
4141

42-
This all provided valuable lessons in how we decide which features are beginning to settle and where we need to focus our effort to get a consistent experience.
42+
This all provided valuable lessons in how we decide which features are beginning to settle and where we need to focus our effort to get a consistent experience.
4343

4444
## What we are working on right now
4545

@@ -66,7 +66,7 @@ Achieving stability will not be possible without all of you that have dedicated
6666

6767
We want to incorporate you in formulating the priorities for the 1.0 release by reaching out to folks interested in particular problems to get clearer roadmaps for specific areas. Those write-ups will hopefully also provide some inspiration for folks interested in helping out and pushing Nushell forward.
6868

69-
But setting our sights on reaching the stable 1.0 release will also impose some limitations on our development practices. We are now much less likely to accept new features, commands, or options as they need to work well together with the larger picture.
69+
But setting our sights on reaching the stable 1.0 release will also impose some limitations on our development practices. We are now much less likely to accept new features, commands, or options as they need to work well together with the larger picture.
7070
A lot of effort will still need to go into cleaning up the internals and fixing bugs. As we want to systematically improve our binary size, compile times, and runtime performance, improving existing algorithms and paying back technical debt will be prioritized over experimental stuff.
7171
Any external dependencies will also come under much more scrutiny.
7272
This means, to reduce the total number of crates we will seek to replace redundant or mostly superfluous dependencies with fewer high-quality implementations and also severely restrict the addition of any new dependencies.

book/cheat_sheet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@
412412

413413
> **custom command which takes any number of positional arguments using rest params**
414414
415-
## Variables & Subexpressions
415+
## Variables
416416

417417
```nu
418418
> let val = 42
@@ -475,10 +475,10 @@
475475

476476
```nu
477477
> let big_files = (ls | where size > 10kb)
478-
> $big_files
478+
> $big_files
479479
```
480480

481-
> **using subexp­ression by wrapping the expression with parent­heses ()**
481+
> **assigning the result of a pipeline to a variable**
482482
483483
---
484484

book/control_flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Nushell provides several commands that help determine how different groups of code are executed. In programming languages this functionality is often referred to as _control flow_.
44

55
::: tip
6-
One thing to note is that all of the commands discussed on this page use [blocks](/book/types_of_data.html#blocks). This means you can mutate [environmental variables](/book/environment.html) and other [mutable variables](http://localhost:8080/book/variables_and_subexpressions.html#mutable-variables) in them.
6+
One thing to note is that all of the commands discussed on this page use [blocks](/book/types_of_data.html#blocks). This means you can mutate [environmental variables](/book/environment.html) and other [mutable variables](/book/variables.html#mutable-variables) in them.
77
:::
88

99
## Already covered

book/environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Individual environment variables are fields of a record that is stored in the `$
8080
BAR
8181
```
8282

83-
Sometimes, you may want to access an environmental variable which might be unset. Consider using the [question mark operator](variables_and_subexpressions.md#variable-paths) to avoid an error:
83+
Sometimes, you may want to access an environmental variable which might be unset. Consider using the [question mark operator](types_of_data.md#optional-cell-paths) to avoid an error:
8484
```nu
8585
> $env.FOO | describe
8686
Error: nu::shell::column_not_found
@@ -234,7 +234,7 @@ _(Important! The environment conversion string -> value happens **after** the en
234234

235235
## Removing environment variables
236236

237-
You can remove an environment variable only if it was set in the current scope via [`hide-env`](/commands/docs/hide_env.md):
237+
You can remove an environment variable only if it was set in the current scope via [`hide-env`](/commands/docs/hide-env.md):
238238

239239
```nu
240240
> $env.FOO = 'BAR'

book/loading_data.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ There are other commands you can use to work with strings:
184184

185185
- [`str`](/commands/docs/str.md)
186186
- [`lines`](/commands/docs/lines.md)
187-
- [`size`](/commands/docs/size.md)
188187

189188
There is also a set of helper commands we can call if we know the data has a structure that Nu should be able to understand. For example, let's open a Rust lock file:
190189

book/overlays.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ In the following sections, the `>` prompt will be preceded by the name of the la
6767

6868
## Removing an Overlay
6969

70-
If you don't need the overlay definitions anymore, call [`overlay hide`](/commands/docs/overlay_remove.md):
70+
If you don't need the overlay definitions anymore, call [`overlay hide`](/commands/docs/overlay_hide.md):
7171

7272
```nu
7373
(spam)> overlay hide spam
@@ -94,7 +94,7 @@ foo
9494
───┴──────
9595
```
9696

97-
The last way to remove an overlay is to call [`overlay hide`](/commands/docs/overlay_remove.md) without an argument which will remove the last active overlay.
97+
The last way to remove an overlay is to call [`overlay hide`](/commands/docs/overlay_hide.md) without an argument which will remove the last active overlay.
9898

9999
## Overlays Are Recordable
100100

book/pipelines.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,16 @@ The `$in` variable will collect the pipeline into a value for you, allowing you
2525

2626
## Multi-line pipelines
2727

28-
If a pipeline is getting a bit long for one line, you can enclose it within `(` and `)` to create a subexpression:
28+
If a pipeline is getting a bit long for one line, you can enclose it within parentheses `()`:
2929

3030
```nu
31-
(
31+
let year = (
3232
"01/22/2021" |
3333
parse "{month}/{day}/{year}" |
3434
get year
3535
)
3636
```
3737

38-
Also see [Subexpressions](https://www.nushell.sh/book/variables_and_subexpressions.html#subexpressions)
39-
4038
## Semicolons
4139

4240
Take this example:

book/programming_in_nu.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Nushell's aliases work in a similar way and are a part of the programming langua
1111
Common operations can, such as addition or regex search, be done with [operators](operators.md).
1212
Not all operations are supported for all data types and Nushell will make sure to let you know.
1313

14-
You can store intermediate results to [variables](variables_and_subexpressions.md) and immediately evaluate subroutines with [subexpressions](variables_and_subexpressions.html#subexpressions).
14+
You can store intermediate results to [variables](variables.md).
15+
Variables can be immutable, mutable, or a parse-time constant.
1516

1617
The last three sections are aimed at organizing your code:
1718

0 commit comments

Comments
 (0)