Home Explore Blog CI



nushell

4th chunk of `blog/2020-01-28-nushell-0_9_0.md`
66b2c550fc5ab3fe00284ce3128ad297033329957cb68d5800000001000008d5
If you've used earlier versions of Nu, you may have wondered why every 50 rows we start a new table. This is where the implementation showed through a bit more than it should. As tables are printed, they are created and then displayed as enough rows are available. This means that output will spool to the screen and not wait for the table to finish processing before you see something. In general, it's good to see the tables earlier, but seeing a different shape of table every 50 rows can be annoying.

We've updated table output to be a lot cleaner, using this logic:

- If rows are being output quickly, build a larger table before outputting it
- If rows are being output slowly, buffer a smaller number of rows and display them (just as before)
- If rows change shape, switch to showing a different table. This helps you visually see when your data source is giving you a new kind of data

## Command improvements

### `ls` and `rm` now error when a path isn't found (Amanita-muscaria)

Adding a bit of polish this release, `ls` and `rm` will now error if you pass them a path they can't find.

### `ls` can optionally show just the filename (coolshaurya)

If you've used `ls` on your subdirectories, you might have noticed that the subdirectory becomes part of the filename. This can be great for building up a pipeline (and a script in the future), but sometimes all you care about is the filename. You can now pass `ls` the `--short-names` command flag to get just the filename.

### `ls` can also optionally show symlink targets (JosephTLyons)

Further improving `ls`, you can now see the symlink targets with the `--full` flag.

### `ls` smaller by default, now with more info with `--full` (sophiajt)

To make Nu easier to use on smaller terminals, the `ls` command will now try to take up less space by default. The columns from earlier version of Nu (and a few more!) are still available, now behind the `--full` flag.

### `from-xml` now includes attributes (Borimino)

One of the first commands we built to import file data into Nu was `from-xml`. It was good enough to get started, and with 0.9.0 it improves to being a more precise representation of what's in the XML file. The command will now include attribute values as part of the table.

Title: Nushell 0.9.0: Improved Table Output and Enhanced 'ls' and 'from-xml' Commands
Summary
Nushell 0.9.0 improves table output by dynamically adjusting the table size based on row output speed. 'ls' and 'rm' now error on unfound paths, 'ls' can show filenames only using `--short-names` and symlink targets with `--full`. 'ls' is smaller by default, but with more info with `--full`. 'from-xml' now includes attributes.