2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-15 13:38:41 +00:00
Commit graph

2840 commits

Author SHA1 Message Date
Stefan Holderbach
06199d731b
Use bleeding edge reedline, with fix for ()
Fixes  (OOM introduced with  when no config was present and an attempt was
made to allocate all memory in advance)

Includes also other changes to reedline:

- Vi word definition fixed and `w` and `e` work as expected
2022-05-20 17:35:25 +02:00
Justin Ma
0ba86d7eb8
Fix , assume pipe file be zero-sized ()
* Fix , assume pipe file be zero-sized

* rust fmt
2022-05-20 09:27:21 -05:00
WindSoilder
6efd1bcb3f
Don't report error when cwd is not exists. ()
* only set cwd for child process if cwd exists, and avoid showing error when pwd is not exists

* better comment text

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-05-20 07:03:03 -05:00
Stefan Holderbach
0d06b6259f
Change miette theme based on ANSI config ()
* Change miette theme based on ANSI config

Use the base ansi colors to simplify the use of the terminal emulator
theming.
Turn of most eye-candy (including unicode) when using
`$config.use_ansi_coloring: false`

Addresses 

* Fix error test affected by changed styling
2022-05-19 13:59:14 -05:00
Stefan Holderbach
8fdc272bcc
Use effectively unlimited history size if not set ()
Fixes 
2022-05-19 12:42:41 -05:00
Stefan Holderbach
0ea7a38c21
Move help menu to canonical F1 binding ()
Currently the fully fledged help menu is bound to `Ctrl-Q`.
Help is widely associated with `F1`.

Before merging check that it is passed through on all platforms and
terminal emulators
2022-05-19 08:24:04 -05:00
WindSoilder
1999e0dcf3
Fix flatten behavior ()
* one step closer to flatten

* integration code is passing, but still need to do one more level flatten for table

* fix flatten

* using match instead of several if let

* make better comment

* fmt code

* better comment
2022-05-19 06:46:48 -05:00
Ian Manske
ac30b3d108
Fix menu panic for empty examples. () 2022-05-19 10:04:56 +02:00
WindSoilder
2b1e05aad0
add quantile column () 2022-05-18 20:47:26 -05:00
pwygab
6c56829976
Allowing for flags with '=' in them to register as flags. ()
* hacky fix for registering flags with '='

* fmt
2022-05-18 11:26:58 -05:00
njbull4
2c58beec13
cp, mv, and rm commands need to support -i flag ()
* restored interactive mode to rm command

* removed unnecessary whitespace in rm file

* removed unnecessary whitespace in rm file

* fixed python-vertualenv build issue

* moved interactive logic to utils file

* restored interactive mode to cp command

* interactive mode for mv wip

* finished mv implementation

* removed unnecessary whitespace

* changed unwrap to expect
2022-05-18 09:53:46 -05:00
Jae-Heon Ji
9c779b071b
feat: apply the --numbered option to acc in reduce command. ()
* feat: apply the `-n` option to acc

* feat: update tests and examples
2022-05-18 09:49:34 -05:00
krober
1e94793df5
Add str title-case ()
Co-authored-by: kyle <kyle@archtop.local>
2022-05-18 08:57:20 -05:00
WindSoilder
7d9a77f179
fix select tests () 2022-05-18 06:20:26 -05:00
WindSoilder
bb079608dd
fix move test ()
* fix move test

* remove ignore
2022-05-18 06:18:21 -05:00
WindSoilder
5fa42eeb8c
Make format support nested column and use variable ()
* fix format for nested structure

* make little revert

* add tests

* fix format

* better comment

* make better comment
2022-05-18 06:08:43 -05:00
krober
3e09158afc
Move capitalize, downcase, upcase to /cases; fix some example descriptions; clarify usage text ()
Co-authored-by: kyle <kyle@archtop.local>
2022-05-18 00:55:43 -04:00
Darren Schroeder
f0cb2f38df
refactor all write_alls to ensure flushing () 2022-05-17 13:28:18 -05:00
Darren Schroeder
f26d3bf8d7
make print flush () 2022-05-17 09:27:12 -05:00
Emilien Fugier
498672f5e5
feat(errors): more explicit module_or_overlay_not_found_error help message () 2022-05-17 06:22:31 -05:00
Reilly Wood
038391519b
Upgrade trash crate for faster non-Windows builds () 2022-05-16 17:48:41 -07:00
JT
e192684612
Revert "Try to do less work during capture discovery ()" ()
This reverts commit 5d40fc2726.
2022-05-17 10:49:59 +12:00
JT
5d40fc2726
Try to do less work during capture discovery () 2022-05-17 09:05:26 +12:00
victormanueltn
a22d70718f
Add search terms to build-string command. () 2022-05-16 12:21:01 -07:00
Darren Schroeder
d1e7884d19
table refactor for readability () 2022-05-16 10:35:57 -05:00
WindSoilder
fc41a0f96b
use reverse iter on value search () 2022-05-16 06:29:40 -05:00
Fernando Herrera
8bd68416e3
Lazy dataframes ()
* lazyframe definition

* expressions and lazy frames

* new alias expression

* more expression commands

* updated to polars main

* more expressions and groupby

* more expressions, fetch and sort-by

* csv reader

* removed open csv

* unique function

* joining functions

* join lazy frames commands with eager commands

* corrected tests

* Update .gitignore

* Update .gitignore

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-05-16 08:27:43 +01:00
JT
c6383874e9
Try removing debuginfo for ci builds ()
* Try removing debuginfo for ci builds

* oops, wrong inherits

* extra flag

* nextest doesn't support --profile in the same way

* try to allow for a ci-specific target

* Oops, run more tests
2022-05-16 16:02:11 +12:00
Reilly Wood
d90b25c633
Look up git commit hash ourselves, drop libgit2 dependency () 2022-05-16 13:57:25 +12:00
WindSoilder
44bcfb3403
fix zip test () 2022-05-15 16:44:32 -05:00
Herlon Aguiar
c047fd4778
nu-cli/completions: add custom completion test () 2022-05-14 15:09:41 -05:00
WindSoilder
16bd7b6d0d
Fix Value::Record compare logic, and pass uniq tests. ()
* fix record compare logic

* add more comment
2022-05-14 06:04:09 -05:00
Herlon Aguiar
3cef94ba39
nu-glob: add fs::symlink_metadata to detect broken symlinks ()
* nu-glob: add fs::symlink_metadata to detect broken symlinks

* fix join result
2022-05-13 17:56:26 -07:00
Reilly Wood
f818193b53
Change history menu keybinding from ctrl+x to ctrl+r ()
* Change history menu keybinding to ctrl+r from ctrl+x

* Remove menupage actions from default config

* remove trailing whitespace

* re-add next+previous page keybindings

* Remove hardcoded menu keybindings

* Hardcode new keybindings
2022-05-13 09:26:14 -05:00
Robert O'Shea
1aec4a343a
Made a change to completion resolution order ()
* Made a change to completion resolution order

* Potential fix for completion (remove file paths from command completer)

* Updating formatting

* Removed commented out code for readability

* Fixed compile error on merge
2022-05-13 08:15:24 -05:00
WindSoilder
852de79212
Implement histogram command ()
* finish histogram

* adjust comment

* add test for histogram

* add Date to test

* move hashable value back inside chart package
2022-05-13 06:48:47 -05:00
WindSoilder
06f40405fe
add rename () 2022-05-13 06:47:11 -05:00
Herlon Aguiar
32d1939a95
nu-command/filesystem: fix rm .sock file () 2022-05-12 19:25:21 -05:00
Darren Schroeder
53e35670ea
add the ability to change table mode when running script () 2022-05-12 07:27:44 -05:00
Herlon Aguiar
a92567489f
nu-cli/completions: verify case for matching dir, .nu, file and command ()
* nu-cli/completions: verify case for matching dir, .nu, file and command

* avoid copy

* fix clippy
2022-05-11 16:16:52 -05:00
Justin Ma
2145feff5d
feat: add tutor list support, remove tutor engine-q, fix: ()
* feat: add `tutor list` support, remove tutor `engine-q`, fix: 

* cs

* fmt
2022-05-11 16:16:01 -05:00
Darren Schroeder
0b95465ea1
add --table_mode -m parameter ()
* add `--table_mode` `-m` parameter

* underscores to dashes
2022-05-11 16:15:31 -05:00
Carl Schierig
ec804f4568
nu-command ls - bump umask crate to 2.0.0 () 2022-05-11 16:13:45 -05:00
Kangaxx-0
4717ac70fd
Add verbose ()
Co-authored-by: Frank Zhang <v-frankz@microsoft.com>
2022-05-11 11:46:13 -05:00
Kangaxx-0
9969fbfbb1
Add feedback to cp ()
Co-authored-by: Frank Zhang <v-frankz@microsoft.com>
2022-05-11 20:06:30 +08:00
Peter Tolsma
5f39267a80
Make $nothing | into string == "" ()
* Make $nothing | into string == ""

* Fix up existing into string tests

* Add $nothing | into string test

* Formatting

* Windows line endings test fix
2022-05-11 12:26:43 +03:00
Darren Schroeder
94a9380e8b
adjust where prompt markers go ()
* adjust where prompt markers go

* marks are working, yipee!
2022-05-10 16:33:18 -05:00
Herlon Aguiar
1d64863585
nu-cli/completions: add variable completions test + refactor tests ()
* refactor tests

* removed old test file
2022-05-10 15:17:07 -05:00
Herlon Aguiar
8218f72eea
nu-cli/completions: added tests for dotnu completions () 2022-05-10 13:18:18 -05:00
Reilly Wood
c0b99b7131
Enable converting dates to ints () 2022-05-10 13:15:28 -05:00