Skip to content

Commit 4e3a2db

Browse files
committed
remaining PRs
1 parent e315737 commit 4e3a2db

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

blog/2024-11-12-nushell_0_100_0.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ As part of this release, we also publish a set of optional plugins you can insta
3232
- [_`catch` error record_](#catch-error-record-toc)
3333
- [_`help commands` and `scope commands`_](#help-commands-and-scope-commands-toc)
3434
- [_`ps -l`_](#ps-l-toc)
35-
- [_`url build-query`_](#url-build-query-toc)
35+
- [_`url join` and `url build-query`_](#url-join-and-url-build-query-toc)
3636
- [_`stor`_](#stor-toc)
3737
- [_`to text --no-newline`_](#to-text-no-newline)
3838
- [_`open --raw`_](#open-raw-toc)
@@ -55,6 +55,8 @@ As part of this release, we also publish a set of optional plugins you can insta
5555
- [_Cell path pretty printing_](#cell-path-pretty-printing-toc)
5656
- [_`in $range`_](#in-range-toc)
5757
- [_`clear`_](#clear-toc)
58+
- [_Prefer `$env.VISUAL` over `$env.EDITOR`_](#prefer-env-visual-over-env-editor-toc)
59+
- [_Fix handling of exported external aliases_](#fix-handling-of-exported-external-aliases-toc)
5860
- [_Panic fixes_](#panic-fixes-toc)
5961
- [_Hall of fame_](#hall-of-fame-toc)
6062
- [_Full changelog_](#full-changelog-toc)
@@ -138,7 +140,7 @@ The `help commands` and `scope commands` now output an `is_const` column indicat
138140

139141
On macOS, `ps -l` now lists the `start_time` of the processes. Windows and Linux already listed a `start_time` column ([#14127](https://github.com/nushell/nushell/pull/14127)).
140142

141-
### `url build-query` [[toc](#table-of-content)]
143+
### `url join` and `url build-query` [[toc](#table-of-content)]
142144

143145
Thanks to [@adaschma](https://github.com/adaschma) in [#14073](https://github.com/nushell/nushell/pull/14073), `url build-query` now allows list values in the parameter record. For example:
144146

@@ -147,6 +149,29 @@ Thanks to [@adaschma](https://github.com/adaschma) in [#14073](https://github.co
147149
# a=1&a=2&b=3
148150
```
149151

152+
Also, thanks to [@Bahex](https://github.com/Bahex) in [#14239](https://github.com/nushell/nushell/pull/14239), `url join` and `url build-query` now support table values for `params`:
153+
154+
```nushell
155+
{
156+
"scheme": "http",
157+
"username": "usr",
158+
"password": "pwd",
159+
"host": "localhost",
160+
"params": [
161+
["key", "value"];
162+
["par_1", "aaa"],
163+
["par_2", "bbb"],
164+
["par_1", "ccc"],
165+
["par_2", "ddd"],
166+
],
167+
"port": "1234",
168+
} | url join
169+
```
170+
171+
```
172+
http://usr:pwd@localhost:1234?par_1=aaa&par_2=bbb&par_1=ccc&par_2=ddd
173+
```
174+
150175
### `touch --no-deref` [[toc](#table-of-content)]
151176

152177
Thanks to [@Dorumin](https://github.com/Dorumin) in [#14214](https://github.com/nushell/nushell/pull/14214), a new `--no-deref` flag was added to `touch`. Providing this flag will make `touch` not follow symlinks.
@@ -431,6 +456,24 @@ An issue where table literals were incorrectly parsed when used as arguments to
431456

432457
On some terminals, `clear` would behave weirdly if used in a series of commands. Thanks to [@NotTheDr01ds](https://github.com/NotTheDr01ds), this has been fixed in [#14181](https://github.com/nushell/nushell/pull/14181).
433458

459+
### Prefer `$env.VISUAL` over `$env.EDITOR` [[toc](#table-of-content)]
460+
461+
[@weirdan](https://github.com/weirdan) fixed our preference of environment variable to find an editor to be more like other Unix commands in [#14275](https://github.com/nushell/nushell/pull/14275). We now prefer to use `VISUAL` first, if it's set.
462+
463+
### Fix handling of exported external aliases [[toc](#table-of-content)]
464+
465+
In [#14231](https://github.com/nushell/nushell/pull/14231), [@sgvictorino](https://github.com/sgvictorino) fixed the way aliases to external commands are handled when exported from modules. Previously, they would mistakenly be passed arguments corresponding to the module path.
466+
467+
```nushell
468+
> module foo { export alias bar = ^echo }
469+
> use foo
470+
> foo bar baz
471+
# 0.99.0:
472+
bar baz
473+
# 0.100.0:
474+
baz
475+
```
476+
434477
### Panic fixes [[toc](#table-of-content)]
435478

436479
A parser panic regarding redirections was fixed in [#14035](https://github.com/nushell/nushell/pull/14035) thanks to [@Kither12](https://github.com/Kither12).

0 commit comments

Comments
 (0)