Home Explore Blog CI



nushell

5th chunk of `blog/2019-11-26-nushell-0_6_0.md`
480a780c4c0d4e77cacdfa4299d7e01076f438c31f1232840000000100001284
## from-xlsx (sophiajt)

We now have an early start at Excel support. With it, you can now import Excel files as tables.

# On-going improvements

Lots of improvements to existing commands this time around.

## Simple and full `ls` (sophiajt)

To make `ls` work better on smaller terminals (including the bog standard 80x24 login size), we've shrunk `ls` a tiny bit by default. Have no worry, though, the original columns and more are available in the new `ls --full`.

## Fuzzy matching (bndbsh)

```shell
❯ ls | where name =~ "yml"
━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━
 name        │ type │ size  │ accessed   │ modified
─────────────┼──────┼───────┼────────────┼────────────
 .gitpod.yml │ File │ 780 B │ a week ago │ a week ago
━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━
```

A long-requested feature is the ability to match strings a bit more fuzzily. With 0.6.0, you'll be able to do just that with the new `=~` (fuzzy match to include) and `!~` (fuzzy match to exclude) commands.

## `from-csv`, now with separator (drmason13)

Sometimes you might find a .csv file in the wild that uses a different separator than comma. You can now configure `from-csv` to use a different character as the separator using, for example, `from-csv --separator ";"`.

## nth can take multiple row numbers (andrasio)

You can now pass multiple row numbers to `nth`. For example `nth 1 3 5` will return those three separate rows as a new table.

## Column paths can now include row numbers (wycats, andrasio)

Sometimes when you're trying to get to data inside an inner table, you want to describe travelling through a particular row to get there. With recent improvements, you can now include the row number in the column path (assuming it is not the first part of the path).

## Duration support (sophiajt, Aloso)

```shell
❯ ls | where accessed < 1w
━━━┯━━━━━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━┯━━━━━━━━━━━━━
 # │ name          │ type      │ size     │ accessed    │ modified
───┼───────────────┼───────────┼──────────┼─────────────┼─────────────
 0 │ Cargo.toml    │ File      │   4.7 KB │ an hour ago │ an hour ago
 1 │ Makefile.toml │ File      │    449 B │ 2 days ago  │ 2 days ago
 2 │ README.md     │ File      │  19.5 KB │ an hour ago │ an hour ago
 3 │ Cargo.lock    │ File      │ 170.7 KB │ an hour ago │ an hour ago
 4 │ crates        │ Directory │   4.1 KB │ an hour ago │ an hour ago
 5 │ TODO.md       │ File      │   1.3 KB │ an hour ago │ an hour ago
━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━━
```

It's now possible to use duration values in Nu. This allows us to check for files accessed less than a week ago, as you see in the example above.

## Renamed `read` to `parse` (sophiajt)

To help with at-a-glance readability, we've renamed `read` to `parse`. While `read` felt more friendly, it could easily be confused for reading input, reading a file, etc.

# General improvements (wycats, thegedge, drmason13, sophiajt, uma1317, JesterOrNot, andrasio, BurNiinTRee)

There has been a ton of work behind the scenes on Nu itself. We now have a much-improved internal debugging system and better module separation courtesy of wycats. There are also a number of general cleanups and bugfixes that have gone into the release.

# Survey results

We recently ran a survey to ask Nu users/non-users what they thought of Nu. If you're interested, definitely check out the [results of the survey](https://www.nushell.sh/blog/2019-11-23-nushell-survey-results.html)

# Looking ahead

We're still hard at work on "MVP #2". It will be the next milestone on our way to the eventual 1.0. If you'd like to help with code, docs, translation, testing, or just want to come chat and throw ideas around, we'd love to have you! You can find us on [discord](), [twitter](https://twitter.com/nu_shell), and [github](https://github.com/nushell/nushell).

Title: Nushell 0.6.0: Further Improvements and Survey Results
Summary
Nushell 0.6.0 introduces several ongoing improvements, including Excel support with 'from-xlsx', simplified and full 'ls' commands, fuzzy matching, CSV parsing with custom separators, multiple row selection with 'nth', column paths including row numbers, duration support, and renaming 'read' to 'parse'. The release also includes general improvements, bug fixes, a new internal debugging system, and better module separation. A survey of Nu users and non-users was conducted, with the results available on the Nushell blog. The team is actively working on "MVP #2" and welcomes contributions.