Darren Schroeder
968ef1e953
add parameter to set thread count for parallel commands ( #4424 )
2022-02-11 12:46:36 -06:00
Darren Schroeder
f275644e13
add --perf
cli param ( #4391 )
...
* add `--perf` cli param
* clippy
* fixed 2 `cp` tests on windows
2022-02-09 16:08:16 -06:00
JT
5d18e07b7d
Bump reedline ( #4388 )
2022-02-09 11:04:31 -05:00
JT
43850bf20e
Re-port filesystem commands ( #4387 )
...
* Re-port the filesystem commands
* Remove commented out section
2022-02-09 09:56:27 -05:00
JT
5fabfda57b
merge main
2022-02-08 08:28:21 -05:00
JT
a660720b68
Bump to 0.44 ( #4365 )
2022-02-07 20:15:46 -05:00
JT
d70d91e559
Remove old nushell/merge engine-q
2022-02-07 14:54:06 -05:00
Fernando Herrera
fdce6c49ab
engine-q merge
2022-02-07 19:11:34 +00:00
JT
3ab55f7de9
bump reedline ( #970 )
2022-02-07 07:40:17 -05:00
Fernando Herrera
796b7a1962
Reedline bump ( #962 )
...
* reedline bump
* reedline bump
* reedline bump
2022-02-06 18:18:32 +00:00
Stefan Holderbach
80306f9ba6
Update reedline to race-condition-free history ( #955 )
2022-02-05 18:16:21 -06:00
Fernando Herrera
abaeffab91
default keybindings command ( #943 )
2022-02-04 17:20:40 -06:00
JT
522a53af68
Add support for quick completions ( #927 )
2022-02-04 10:30:21 -05:00
Fernando Herrera
1e86af2fb9
list keybinding options ( #906 )
...
* list keybinding optins
* list keybinding options
* clippy error
2022-02-04 06:47:18 +00:00
Stefan Holderbach
ac0b331f00
Update reedline to paste multiple command lines ( #920 )
...
* Update reedline to paste multiple command lines
* Remove comments for non-user events
2022-02-03 16:56:39 -06:00
Darren Schroeder
2f0bbf5adb
du
command (#916 )
...
* wip on `du` command
* working
2022-02-03 11:35:06 -06:00
Stefan Holderbach
b9c2bf226f
Obligatory reedline bump ( #914 )
...
- Keybinding related improvements
- internals
- Vi insert should know more keybindings
2022-02-02 20:24:24 -05:00
JT
cc1b784e3d
Add initial nu-test-support port ( #913 )
...
* Add initial nu-test-support port
* finish changing binary name
* Oops, these aren't Windows-safe tests
2022-02-02 15:59:01 -05:00
Darren Schroeder
cbdc0e2010
Windows ps update ( #909 )
...
* query command with json, web, xml
* query xml now working
* clippy
* comment out web tests
* Initial work on query web
For now we can query everything except tables
* Support for querying tables
Now we can query multiple tables just like before, now the only thing
missing is the test coverage
* Revert "Query plugin"
* augment `ps -l` on windows to display more info
Co-authored-by: Luccas Mateus de Medeiros Gomes <luccasmmg@gmail.com>
2022-02-01 15:05:26 -06:00
Darren Schroeder
004d7b5ff0
query command with json, web, xml ( #870 )
...
* query command with json, web, xml
* query xml now working
* clippy
* comment out web tests
* Initial work on query web
For now we can query everything except tables
* Support for querying tables
Now we can query multiple tables just like before, now the only thing
missing is the test coverage
* finish off
* comment out web test
Co-authored-by: Luccas Mateus de Medeiros Gomes <luccasmmg@gmail.com>
2022-02-01 12:45:48 -06:00
Fernando Herrera
ebaa584c5e
Reedline bump ( #905 )
...
* reedline bump
* reedline bump
2022-01-31 19:17:23 -05:00
Fernando Herrera
76a4455255
reedline bump ( #896 )
2022-01-30 22:15:34 +00:00
Stefan Holderbach
c37f844644
Bump reedline ( #873 )
...
Should remove the need for manual `str find-replace -a (char newline) (char crlf)` in `PROMPT_COMMAND`
Fixes #575
2022-01-28 16:26:19 -05:00
Stefan Holderbach
bfb9822475
Accomodate reedline#270 ( #863 )
...
Rename `ContextMenu` to `CompletionMenu`
Supply the completer directly to the line editor
2022-01-28 05:44:35 +11:00
Fernando Herrera
267ff4b0cf
using menu trait ( #861 )
2022-01-27 07:53:23 +00:00
Fernando Herrera
69954a362d
history-menu ( #846 )
2022-01-25 09:39:22 +00:00
JT
62e9698b11
Allow external args to expand globs ( #839 )
...
* Allow external args to expand globs
* WIP
* A bit of cleanups and refactor to glob_from
* oops, add file
2022-01-25 05:26:56 +11:00
Darren Schroeder
be0d221d56
ansi cut 2.0 ( #827 )
2022-01-23 13:35:25 +11:00
Stefan Holderbach
0651e2b31f
Upgrade reedline for partial hint completion ( #802 )
2022-01-22 06:21:22 +11:00
Fernando Herrera
846a048bba
menu-performance ( #793 )
2022-01-21 08:59:29 +00:00
JT
69b2ed5566
bump reedline ( #788 )
2022-01-20 18:58:48 -05:00
JT
724cfaa890
Bump reedline ( #785 )
2022-01-20 13:57:47 -05:00
JT
33ffb2c39a
Add which
command, add external completions, and builtin var completions ( #782 )
...
* Add which and external completions
* WIP
* Finish up external and var completions
* fix windows
2022-01-21 05:02:53 +11:00
Fernando Herrera
ff9d88887b
simple event keybinding ( #773 )
2022-01-18 19:32:45 +00:00
JT
49e8af8ea5
Bump to 0.43 ( #4264 )
2022-01-18 12:06:12 -05:00
Guillaume Gomez
e6c09f2dfc
Update sysinfo version ( #4261 )
2022-01-18 22:37:52 +11:00
Fernando Herrera
20eb348896
simple keybinding parsing ( #768 )
2022-01-18 08:48:28 +00:00
Darren Schroeder
ac36f32647
remove dialoguer completions in favor of reedline's ( #766 )
2022-01-17 09:51:44 -06:00
JT
9b128b7a03
Add rest to get, bump reedline ( #760 )
2022-01-17 02:40:11 +11:00
Jakub Žádník
3b4baa31b6
Fix ls relative path & command argument path expansion ( #757 )
...
* Switch to short-names when the path is a relative_path (a dir) and exit with an error if the path does not exist
* Remove debugging print line
* Show relative filenames... It does not work yet for ls ../
* Try something else to fix relative paths... it works, but the ../ code part is not very pretty
* Add canonicalize check and remove code clones
* Fix the canonicalize_with issue pointed out by kubouch. Not sure the prefix_str is what kubouch suggested
* Fix the canonicalize_with issue pointed out by kubouch. Not sure the prefix_str is what kubouch suggested
* Add single-dot expansion to nu-path
* Move value path expansion from parser to eval
Fixes #745
* Remove single dot expansion from parser
It is not necessary since it will get expanded anyway in the eval.
* Fix ls to display globs with relative paths
* Use pathdiff crate to get relative paths for ls
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2022-01-17 00:55:56 +11:00
JT
8f4ee14d85
Hide Windows ps status, bump reedline ( #749 )
2022-01-16 06:44:24 +11:00
Fernando Herrera
89d99db94f
menu options ( #748 )
2022-01-15 17:01:44 +00:00
Darren Schroeder
a7241f9899
add seq_date
command ( #743 )
...
* add `seq_date` command
* fixed a reedline type-o
* copy-n-paste error
2022-01-14 16:07:28 -06:00
JT
ca215c1152
Add nu-system and rewrite ps command ( #734 )
...
* Add nu-system and rewrite ps command
* Add more deps
* Add more deps
* clippy
* clippy
* clippy
* clippy
* clippy
* clippy
2022-01-14 17:20:53 +11:00
JT
2b6ce4dfe5
Bump reedline again ( #732 )
2022-01-14 07:03:29 +11:00
Fernando Herrera
58c5ea4937
menu with tab ( #724 )
2022-01-12 10:57:37 +00:00
Fernando Herrera
47495715a6
context menu with nucompleter ( #722 )
2022-01-11 21:53:42 +00:00
Fernando Herrera
74fd78e02c
reedline bump ( #717 )
2022-01-11 07:21:28 +00:00
JT
7970e71bd4
bump reedline ( #712 )
2022-01-10 12:06:25 +11:00
Fernando Herrera
8a0d2b4e32
double prompt ( #686 )
...
* double prompt
* prompt env var name
2022-01-06 12:57:55 +00:00
JT
36079f1a3d
Port fetch (with fixes) ( #660 )
...
* Port fetch to engine-q
* Fix check for path as a string
* Add a timeout flag and fix some span issues
* Add a temporary fetch command that returns byte streams. Got rid of async stuff as we're using the blocking feature of tokio
* More tweaks for the bytestream
* Rewrite fetch using ByteStreams
* buffer read on bytes directly
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2022-01-04 13:01:18 +11:00
JT
681e37cec6
bump reedline ( #655 )
2022-01-04 06:38:24 +11:00
JT
850f66aa9d
Fix build breakage - bump ansi term ( #651 )
...
* Fix build breakage - bump ansi term
* Remove e-q ansi term
2022-01-03 09:36:32 +11:00
JT
ac487dfcbc
Add parser tracing, fix 629 ( #638 )
2022-01-02 08:42:50 +11:00
JT
7fa1ad010b
Bump reedline, again ( #636 )
2022-01-01 16:30:59 +11:00
JT
44791b5835
Bump reedline, again ( #635 )
2022-01-01 12:27:45 +11:00
JT
15b979b06e
Bump reedline ( #634 )
2022-01-01 09:41:29 +11:00
JT
2320987862
Bump reedline ( #627 )
2021-12-31 11:36:01 +11:00
JT
62011b6bcc
Bump to 0.42 ( #4234 )
2021-12-28 20:56:59 +11:00
Darren Schroeder
0c1a7459b2
Update to the latest reedline ( #608 )
...
* update to the latest reedline
* update to latest reedline
2021-12-27 14:16:34 -06:00
Fernando Herrera
53330c5676
def argument check ( #604 )
...
* def argument check
* corrected test
* clippy error
2021-12-28 06:13:52 +11:00
nibon7
1214cd57e8
bat: use regex-onig instead of regex-fancy ( #4226 )
...
Fixes #4224
Signed-off-by: nibon7 <nibon7@163.com>
2021-12-24 08:34:59 -06:00
JT
3522bead97
Add string stream and binary stream, add text decoding ( #570 )
...
* WIP
* Add binary/string streams and text decoding
* Make string collection fallible
* Oops, forgot pretty hex
* Oops, forgot pretty hex
* clippy
2021-12-24 18:22:11 +11:00
JT
b719f8d4eb
Add missing flags to existing commands ( #565 )
...
* Add missing flags to existing commands
* fmt
2021-12-24 08:41:29 +11:00
Darren Schroeder
5c83f4d405
update to latest reedline ( #562 )
2021-12-23 13:39:54 -06:00
JT
ef59b4aa51
Some multiline fixes ( #557 )
2021-12-23 09:53:19 +11:00
JT
3389baa392
Improve multiline history ( #556 )
2021-12-23 07:44:05 +11:00
JT
43dd0960a0
Use latest history hint ( #552 )
2021-12-22 20:39:35 +11:00
JT
9fb12fefb0
Improve history hinting ( #551 )
2021-12-22 20:12:24 +11:00
Fernando Herrera
6a35e6b7b6
Dataframe commands ( #542 )
...
* groupby object
* aggregate command
* eager commands
* rest of dataframe commands
2021-12-22 05:32:09 +11:00
Darren Schroeder
9a864b5017
allow flatshape (command line syntax) theming ( #502 )
...
* allow flatshape (command line syntax) theming
* renamed crate, organized
2021-12-16 06:17:29 -06:00
JT
17a7a85c78
Bump some deps ( #503 )
2021-12-16 20:40:05 +11:00
JT
e9525627e6
Fix a couple crlf issues ( #496 )
2021-12-15 07:17:02 +11:00
Eli Flanagan
e919f9a73b
use heck for string casing ( #4081 )
...
I removed the Inflector dependency in favor of heck for two reasons:
- to close #3674 .
- heck seems simpler and actively maintained
We could probably alter the structure of the `str_` module to expose the
individual casing behaviors better.
I did not feel as confident on changing those signatures.
So I took a lazier approach of a macro in the `mod.rs` that creates the public
shimming function to heck's traits.
2021-12-14 09:43:48 -06:00
JT
673fe2b56a
Bump to use latest git reedline ( #488 )
2021-12-14 06:54:43 +11:00
JT
1336acd34a
Seems ps still needs a delay to be accurate ( #484 )
2021-12-13 16:28:35 +11:00
Darren Schroeder
4096f52003
update templates2 ( #4200 )
2021-12-12 16:11:27 -06:00
Darren Schroeder
7ceb668419
Revert "try out title change ( #4198 )" ( #4199 )
...
This reverts commit 420aee18ca
.
2021-12-12 16:06:07 -06:00
Darren Schroeder
420aee18ca
try out title change ( #4198 )
2021-12-12 16:05:24 -06:00
Fernando Herrera
4d7dd23779
Plugin json ( #474 )
...
* json encoder
* thread to pass messages
* description for example
2021-12-12 11:50:35 +00:00
Darren Schroeder
f8e6620e48
tweak version output as a list vs table ( #472 )
2021-12-11 14:40:16 -06:00
Benoît Cortier
e77c6bb284
Port hash
, hash md5
and hash sha256
commands ( #464 )
...
`hash` by itself is only printing the help message.
The other two are simply using the same generic implementation.
2021-12-10 17:14:28 -06:00
Luccas Mateus
95841e3489
to xml
and to yaml
(#463 )
2021-12-10 14:46:43 -06:00
Luccas Mateus
7a892ec5d7
To html
and to md
(#453 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
* First draft of these commands
* To MD
* To md and to html
* Fixed cargo and to_md
* `into_abbreviated_string` instead of `into_string`
* Changed how inner tables are displayed
2021-12-09 19:16:35 -06:00
Jae-Heon Ji
c3b6e07de6
Port network/url
command ( #452 )
...
* feat: add url command
* feat(network/url): add sub-command for url
2021-12-09 18:09:30 -06:00
Darren Schroeder
5c27ffa42e
update to latest reedline, change config point name, enable output without ansi ( #458 )
2021-12-09 16:06:26 -06:00
Darren Schroeder
3dc19d4179
Filesize formatting ( #456 )
...
* configure the format of filesize
* type-o
* removed some comments
* updated tests
* accomodated filesize_metric better, added test
2021-12-09 13:19:36 -06:00
Darren Schroeder
a8e5cb871e
optionally remove table output color ( #455 )
2021-12-09 10:00:26 -06:00
Darren Schroeder
512dcf0988
enable cargo build --features=extra
to build plugins ( #448 )
2021-12-07 14:06:34 -06:00
JT
610e3911f6
Bump to 0.41 ( #4187 )
2021-12-08 06:21:00 +13:00
Darren Schroeder
c8b9913718
introducing gstat
, a new command to get the git status ( #443 )
...
* wip - preliminary checking
* updated to latest pluging
* i think it's all working now, except bare words
* clippy
2021-12-06 11:28:11 -06:00
Jae-Heon Ji
9548e5ef5b
feat(random): add random-integer and random-uuid ( #440 )
...
* feat(randome): add random-integer
* feat(random): add random-uuid
2021-12-06 06:22:50 +13:00
Fernando Herrera
29efbee285
corrected missing shellerror type ( #439 )
2021-12-05 13:25:37 +00:00
JT
8cf4402e6c
Reset ansi more often when showing errors ( #425 )
2021-12-04 18:02:57 +13:00
Darren Schroeder
bef138232c
this fixes garbage ansi when externals turn off vt processing ( #422 )
...
* this fixes garbage ansi when externals turn off vt processing
* clippy
* changes are only for windows
* type-o
2021-12-03 13:49:25 -06:00
Fernando Herrera
f3c8d35eb7
Plugin repeated ( #417 )
...
* not repeated decl in file and help
* implemented heashmap for repeated
* sorted scope commands
2021-12-03 14:29:55 +00:00
JT
c08e145501
Fix clippy warnings ( #4176 )
2021-12-03 07:05:38 +13:00
Fernando Herrera
56307553ae
Plugin with evaluated call ( #393 )
...
* plugin trait
* impl of trait
* record and absolute path
* plugin example crate
* clippy error
* correcting cargo
* evaluated call for plugin
2021-12-02 05:42:56 +00:00
JT
89cbfd758d
Remove 'arboard' ( #4174 )
2021-12-02 08:48:03 +13:00
Darren Schroeder
d8c721282b
add optional footer to table ( #392 )
...
* add optional footer to table
* missed a draw_table
2021-12-01 13:20:23 -06:00