Home Explore Blog CI



nushell

2nd chunk of `blog/2022-05-24-nushell_0_63.md`
0533d77f13e4b6b4a16701a002f8bfa094c89b2ac2d54ec50000000100000ff0
PWD environment variable changed from /home/sophiajt/Source/nushell to /home/sophiajt/Source
/home/sophiajt/Source〉
```

Used together with the "overlays" feature above, we hope to open up the possibility for a lot of powerful interactions with the shell while still keeping the workflow that makes Nushell special.

## Lazy dataframe support (elferherrera)

We are starting to support a new way to query dataframes by using lazyframes. This new concept will allow users to build logical plans for the data operations which will result in a reduction of the dataframe processing time.

Lazy dataframes are accessed through the same `dfr` command and give you a way to build up a pipeline to execute in a more optimal way than the previous eager dataframes. For example, you can perform your aggregations and group-bys lazily, and then work on the results instead of paying for the processing time of having two separate steps.

# New commands

- (Returned from the engine rewrite) `histogram` for checking distributions right inside nushell (WindSoilder)
- `config nu` and `config env` to easily edit your nushell configuration files with your editor of choice (Kangaxx-0/vFrankZhang)
- `str title-case` (krober)
  ```
  > 'this is a test case' | str title-case
  This Is A Test Case
  ```
- Many new `db` subcommands (elferherrera)

# Quality-of-life Improvements

- More commands contain additional search terms to find them if you don't remember their exact name. (victormanueltn, LawlietLi) This is a great way to help out by contributing! More information can be found [here](https://github.com/nushell/nushell/issues/5093).
- `print -n` option to print output without an additional new-line (fdncred)
- `flatten` now has a more consistent behavior for nested records and tables. (WindSoilder) This now more closely matches the pre-0.60 flatten, and should help create more predictable output.

- We now support octal binary literals `0o[777]` similar to the hexadecimal `0x[FF]` and binary `0b[11111111]` literals (toffaletti)
- `cd` accepts abbreviation of paths to quickly jump to nested directories based on unique prefixes (fdncred)
  ```
  > $env.PWD
  ~/some/path
  > cd d/s/9
  > $env.PWD
  ~/some/path/deep/space/9
  ```
- Various improvements make the completions feel more polished (herlon214, PurityLake)
- If `$config.buffer_editor` is not set rely on the `$env.EDITOR` and `$env.VISUAL` environment variables to find a text editor to edit longer pipelines or your `config ...` (Kangaxx-0/vFrankZhang, sholderbach)
- When invoking `nu` to run a script you can now pass the `--config` flag to load your `config.nu` and have the definitions available when running the script (WindSoilder)
- Similarly you can change the table appearance with the `--table-mode` flag when invoking `nu` (fdncred)

**Note:** this is a shortened list. For the full list, see the "Changelog" section below

# Breaking changes

## Changed default keybindings:

| Old binding | New binding | Action                     | Reason for the change                                                                                                                                                          |
| ----------- | ----------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Ctrl-x`    | `Ctrl-r`    | Visual history search menu | We replaced the simple history search (previously bound to `Ctrl-r`, `cmd: SearchHistory`) with the menu that supports previewing several entries at once for quick navigation |
| `Ctrl-q`    | `F1`        | Interactive help menu      | `F1` is generally the convention for help information, with this menu you can search for commands browse through their documentation and pick examples to include/run          |

# Looking ahead

Here are a few of the things we're working on:

SQLite based history. This will maintain a larger number of entries that can searched using date, usage or text.

Title: Nushell 0.63: New Commands, Quality-of-Life Improvements, and Breaking Changes
Summary
Nushell 0.63 introduces several new commands like `histogram`, `config nu`, `config env`, and `str title-case`, along with improvements to `db` subcommands. Quality-of-life enhancements include better search terms for commands, a `print -n` option, consistent `flatten` behavior, octal binary literal support, abbreviated `cd` paths, polished completions, and better editor integration. Breaking changes include updated default keybindings for visual history search and the interactive help menu. The team is working on SQLite-based history for future releases.