Home Explore Blog CI



nushell

4th chunk of `blog/2020-06-09-nushell_0_15_0.md`
b19323256331842c44822b52d298584a50388b4c667952140000000100000c26
### `du` can now be canceled with ctrl-c (JosephTLyons)

For those long-running `du` runs that you want to stop short, you can now use `ctrl-c` to exit back to Nu.

### `with-env` shorthand now works with quoted strings as well (k-brk)

Now support: passing a string as a value in environment shorthands:

```
> FOO="My Bar" command arg1 arg2
```

### Add config option for "rm_always_trash" (filalex77)

If you'd prefer to always `rm` to the recycle bin instead of permanently deleting, you can enable the new "rm_always_trash" config setting.

### `parse` now also takes a `--regex` flag (filalex77)

For when you need to do a bit more serious parsing work, you can now use regex from inside of the `parse` command.

### Various improvements to auto-pivot (fdncred, Samboy218)

Previously, we always auto-pivoted the single row. Now, you can configure whether or not you want the row to pivot before it's displayed, including a new heuristic mode that will attempt to only pivot the row if necessary.

### `histogram` now has a count (JosephTLyons)

You'll now be able to see the count of each of the rows in the histogram.

### `format` can now access variables as well as column names (sophiajt)

Previously, `format` would only allow you to pass in column names. This meant that also printing a variable's value was a bit convoluted. With 0.15, you can pass in either a column name, or a variable (including a full variable path like `$nu.history-path`)

### `to json` now has pretty printing support (JosephTLyons)

You can now get `to json` to give you pretty-printed output, using the new `--pretty <indent size>` flag.

```
> echo $nu | to json --pretty 2
```

### Consumers of `nu-cli` can now register custom commands (daschl)

If you're building applications and want to use `nu` as a library instead of directly as a cli, it's now possible to pass in your own set of custom commands that Nu will enable as internal commands.

## Doc and book updates

Contributor "zombie110year" has been working on translating the book to Simplified Chinese. If you'd like to help, let us know!

Also thanks to mhmdanas, andrasio, shiena, q-b, jzaefferer, Samboy218, ryepesg, 0xABAD, sseering, hilias, Dimagog, and fdncred for contributing to the book and continuing to help make it better.

## Bugfixes and polish (daschl, JosephTLyons, utam0k, arashout, andrasio, fdncred, johnae, sophiajt, thegedge, shaaraddalvi, notryanb, EmNudge, Kelli314, coolshaurya, johnterickson, klnusbaum, AdminXVII, Delapouite, hdhoang)

There are _far_ too many improvements and bugfixes to list here, but another _huge_ thank you to everyone who has helped fix an issue, report an issue, chatted with us on twitter and discord, and just shared your love for Nu with others.

# Looking forward

With 0.15, we've closed another set of gaps in what people need in a shell. We're looking to continue improving completions, as well as growing the parser to support Nu scripts not just line-by-line, but as whole source files. We're also working on improving jupyter support, file encoding for better support across languages, and more.

Title: Nushell 0.15.0: Advanced Features, Bug Fixes, and Future Directions
Summary
This section details several enhancements to Nushell 0.15.0. It covers the ability to cancel 'du' with ctrl-c, use quoted strings in 'with-env', enable 'rm_always_trash', use regex in 'parse', and configure auto-pivot behavior. Other improvements include histogram counts, variable access in 'format', pretty printing for 'to json', and custom command registration for 'nu-cli' consumers. The update also includes translated documentation, numerous bug fixes, and plans for improving completions, parser support for source files, Jupyter support, and file encoding.