Home Explore Blog CI



nushell

3rd chunk of `blog/2020-05-12-nushell_0_14_0.md`
a6986fc7c7a8c70a67dfdd2c3add3229346b006c623e804f00000001000008b2
With 0.14, you can now define subcommands. Subcommands each get a unique signature which has its own coloring, autocomplete, etc.

```
> open myfile.txt | from csv --headerless
```

## Breaking changes: renaming some commands (sophiajt, andrasio)

You may have noticed above that the `from-csv` is now `from csv`, that is, the `csv` part is now a subcommand of the `from` command. We've moved all `from-*` and `to-*` commands to be subcommands. This change was requested by users as part of an effort to streamline how conversion commands work.

Another set of changes requested by users was to update the names of some of the commands to the more common forms:

- `pick` is now `select`. This matches more closely with SQL, LINQ, and shells with similar functionality.
- `edit` is now `update`

While we are cautious to take breaking changes, we're confident - judging from user feedback - that these changes make Nu more ergonomic and easier to learn.

## `ls` learns read directory sizes (JosephTLyons)

A few users have wondered why Nu doesn't print the full directory size as part of `ls`. With 0.14, you'll now be able to get just that with the new `--du` argument to `ls`. Note: this isn't enabled by default as calculating the directory size can take quite a lot of processing.

## Startup speedups (fdncred)

It's important to make a good first impression, and with this release Nu gets a speed boost for the initial startup. It will now load plugins in parallel rather than one after another. In some cases, this can lead to startups 3x-4x faster than previous versions.

## Auto-cd speedups (quebin31)

We've also gotten a boost when using the automatic change directory. You'll notice that 0.14 is a lot snappier when you type a directory to automatically jump to.

## Lots of new commands

- `from eml` (aeshirey) - have lots of saved emails lying around and want to process them? With 0.14, you can now easily load them into Nu
- `empty?` (andrasio) - you can now check multiple columns for emptiness, and if empty, give them a value
- `skip-until`, `keep-while`, `keep-until` (andrasio) - similar to `skip-while`, you can optionally `skip` or `keep` rows if they meet a condition or until they meet a condition

Title: Nushell 0.14.0 - ls --du, Startup Speedups, Auto-cd Speedups, and New Commands
Summary
Nushell 0.14.0 introduces the `--du` argument to `ls` for displaying directory sizes, improving startup speed by loading plugins in parallel, and enhancing the speed of automatic change directory. Additionally, several new commands have been added, including `from eml` for loading emails, `empty?` for checking column emptiness, and `skip-until`, `keep-while`, `keep-until` for filtering rows based on conditions.