Darren Schroeder
ed515cbc0c
update keybindings to support new rustyline functionality ( #3511 )
...
* update keybindings to support new rustyline functionality
* remove some keybindings comments
* fix wasm build
* fixed multiline editing binding
2021-05-28 15:10:04 -05:00
Darren Schroeder
87a6d7166c
remove expect so that config doesn't fail ( #3510 )
2021-05-29 05:23:15 +12:00
JT
55baee9a9a
Cleanup let varname and rhs ( #3507 )
2021-05-28 19:48:54 +12:00
JT
0886afe650
Fix for in ( #3506 )
...
* Fix for..in examples
* Fix for..in examples
2021-05-28 11:20:33 +12:00
JT
872f6166e1
Add for..in command ( #3504 )
2021-05-28 10:32:45 +12:00
Jakub Žádník
fe348e236f
Convert do command to engine-p; Fix flag name ( #3503 )
...
Renamed "ignore_errors" to "ignore-errors" to be aligned with nushell's
naming conventions.
2021-05-28 10:12:52 +12:00
Darren Schroeder
e0f083d117
fix polars compile warnings ( #3501 )
2021-05-27 12:30:46 -05:00
Darren Schroeder
48171f8e24
remove str from ( #3500 )
2021-05-27 12:18:02 -05:00
Darren Schroeder
bcdf74562b
remove into int references ( #3499 )
2021-05-27 11:35:25 -05:00
Fernando Herrera
3a5ee1aed0
Dataframe commands ( #3498 )
...
* Sample command
* Join command with checks
* More dataframes commands
* Groupby and aggregate commands
* Missing feature dataframe flag
* Renamed file
2021-05-27 17:09:48 +12:00
Darren Schroeder
d8c4b9c4fb
add locale for ls size ( #3497 )
...
* add locale for ls size
* updated to work when it's not an exact match like de_DE when it needs de
2021-05-27 11:02:24 +12:00
Jakub Žádník
6ae7884786
Fix path dots expansion ( #3491 )
...
* Fix parser expanding dots where it shouldn't
Previously, the parser would expand "a...b" as "a../..b". Now, >2 dots
are only expanded when the whole path component consists of dots (i.e.,
"..." expands to "../.." while "a...b" stays as it is).
* Respect OS separator when expanding >2 dots
"..." now expands to either "../.." or "..\..", based on the host OS.
2021-05-26 20:17:18 +12:00
JT
41834d16d6
Allow aliases to expand and ignore painting outside of lines ( #3492 )
2021-05-26 17:58:32 +12:00
Lily Mara
1ee51f2afa
Add the load-env command ( #3484 )
...
* Add the load-env command
load-env can be used to add environment variables dynamically via an
InputStream. This allows developers to create tools that output environment
variables as key-value pairs, then have the user load those variables in using
load-env. This supplants most of the need for an `eval` command, which is
mostly used in POSIX envs for setting env vars.
Fixes #3481
* fixup! Add the load-env command
2021-05-26 06:18:20 +12:00
Darren Schroeder
65ee7aa372
correctly escape pipe in windows/cmd.exe ( #3489 )
...
* correctly escape pipe in windows/cmd.exe
* add some comments, take out debug line
2021-05-25 09:19:45 -05:00
Darren Schroeder
ac38ee82f4
error message cleanup for into string ( #3488 )
2021-05-25 07:49:12 -05:00
JT
5fcc7f2328
Fix bad operator ( #3479 )
2021-05-24 17:27:10 +12:00
Andrés N. Robalino
3bcc2aad80
Pass command's span correctly when reporting unexpected flags. ( #3478 )
...
Not all lite command's first part denotes a real command (for cases like sub commands that it's second lite part accounts for the command name). This is important so that we can refer to it's span correctly. Here we fix to include the command's name span correctly whether it's a command or sub command when reporting missing flag errors.
2021-05-23 19:30:30 -05:00
Tomas Koutsky
6165b6ae77
Add params to do
( #3477 )
2021-05-24 09:21:41 +12:00
Fernando Herrera
e335e4fddc
Groupby operations on dataframes ( #3473 )
...
* Added PolarsStruct enum to implement groupby
* template groupby
* groupby operationi on dataframes
2021-05-23 19:37:04 +12:00
Jakub Žádník
5ab4199d71
Add path separator to char
; Update char to engine-p; List all names of all possible chars ( #3470 )
...
* Allow querying the current path separator
* Convert char command to engine-p
* Wrap char args into struct
* Add --list option to char command
This lists all the available character names, along with the character
and its unicode points.
2021-05-22 11:48:33 -05:00
Fernando Herrera
f075e2459d
Commands to engine ( #3448 )
...
* commands to engine
* Correction of error in parser
* Added detailed regex error to parse
* better regex error parsing
* clippy corrections
* parse example with test
* secondary error for regex
* removed clone in error parser
* Secondary error message
2021-05-22 10:52:04 -05:00
Jakub Žádník
94a26abf21
Implement path relative-to
subcommand ( #3461 )
...
* Register new path relative-to command
* Implement `path relative-to` subcommand
2021-05-22 09:29:40 -05:00
Leonhard Kipp
bcbdc33049
Use enginep style in enter command ( #3469 )
2021-05-22 09:27:42 -05:00
Henrik Sjööh
21ef3895b3
delete crates/nu-command/src/commands/date/utc.rs ( #3464 )
...
The `date utc` command was removed in this PR:
https://github.com/nushell/nushell/pull/2780
The file was left but is no longer referenced from the parent module
and was not used.
Co-authored-by: Henrik Sjööh <henrik.sjooh@configura.com>
2021-05-22 17:09:50 +12:00
JT
3e99dc01b0
let date commands pull default date ( #3463 )
2021-05-22 17:02:06 +12:00
Eli Flanagan
2b92e3e8a7
port group-by to engine-p ( #3458 )
...
* migrate group-by to engine p
Part of #3390 .
* consume positional argument correctly
2021-05-21 21:19:43 -05:00
Darren Schroeder
cb90b90cbf
nothing converted to string should return nothing and not fail ( #3459 )
2021-05-21 11:06:53 -05:00
Darren Schroeder
9776a252ee
add addition characters that can be hard to work with in nushell ( #3457 )
2021-05-21 08:04:48 -05:00
JT
751de20f93
Do a bit more cleanup of block params ( #3455 )
...
* Do a bit more cleanup of block params
* Do a bit more cleanup of block params
2021-05-21 19:04:27 +12:00
JT
28388b4e3a
Split unit into duration and filesize ( #3453 )
2021-05-21 13:21:46 +12:00
JT
4fdbf30308
Paren interpolation ( #3452 )
...
* Switch interp to use parens
* improve interp parsing
2021-05-21 10:55:38 +12:00
Darren Schroeder
722f191e82
updated round to support i64 ( #3451 )
2021-05-20 13:59:19 -05:00
JT
20f6114617
Improve block params ( #3450 )
2021-05-20 16:26:54 +12:00
Jakub Žádník
3075e2cfbf
Remove rest_args() from evaluated CommandArgs ( #3449 )
...
It was too error prone when positional arguments were used with the rest
arguments. Now, you need to explicitly state from which position you
want to count the rest args (e.g., `rest(0)`).
2021-05-20 10:26:23 +12:00
JT
e2973d2176
Add explicit block params ( #3444 )
...
* Add explicit block params
* Add explicit block params
2021-05-19 20:23:45 +12:00
JT
0ff08bb63a
Just treat u64 like i64 for now ( #3442 )
2021-05-19 09:32:37 +12:00
Jakub Žádník
08c0bf52bc
Fix path join argument type and a typo ( #3441 )
2021-05-19 09:30:37 +12:00
Fernando Herrera
d0229cb96e
Load parquet and json files ( #3437 )
...
* Load parquet and json files
* changed csv file error
2021-05-19 07:33:10 +12:00
Darren Schroeder
0612e5ccfb
updated to the latest rustyline ( #3439 )
2021-05-18 12:36:55 -05:00
Darren Schroeder
1b4f7b34c8
don't let externals break ansi escapes ( #3438 )
2021-05-17 18:01:34 -05:00
Alex Shadley
86e6fcd309
Negative indexing for range ( #3427 )
...
* adds negative indexing to range
* fixes tests to reflect new parsing changes
* removes duplicate definitons
* fmt
2021-05-17 15:08:47 +12:00
Marc Schreiber
dc9cd7d8b9
Add Support for Partial Completions ( #3432 )
...
This commit adds a conditional event handler that inserts the next word of the
hint text when the user presses control and right arrow.
2021-05-16 08:43:43 +12:00
Fernando Herrera
c0cc9ce7cd
Dataframe new commands ( #3425 )
...
* Folder for dataframe commands
* New commands for dataframe
2021-05-15 19:24:11 +12:00
Darren Schroeder
be2f66397b
re-enable ansi support when externals break it ( #3429 )
2021-05-15 16:11:21 +12:00
Fernando Herrera
07760b4129
Commands to engine p ( #3426 )
...
* hash and into converted
* keep command to engine p
* Update int.rs
Co-authored-by: JT <jonathandturner@users.noreply.github.com>
2021-05-15 16:11:07 +12:00
JT
d79a3130b8
Make the default int an i64 ( #3428 )
...
* Make the default int an i64
* fmt
* Fix random integer
* Treat pids as i64 for now
2021-05-14 20:35:09 +12:00
Darren Schroeder
440a589f9e
changed comment slightly
2021-05-13 14:21:16 -05:00
Fernando Herrera
f5fcf9d635
Dataframe feature for plugins ( #3424 )
2021-05-13 21:49:46 +12:00
JT
9b8b1bad57
Don't insert PATH variable on Windows ( #3422 )
...
* Don't insert PATH variable on Windows
* Simplify fix
* Just centralize the var
* Add a message about why we have to workaround the issue
2021-05-13 15:03:49 +12:00