Yuheng Su
7c9a78d922
Fixed ctrl-c in recursion loop bug #5362 ( #5409 )
2022-05-02 20:18:25 +12:00
panicbit
49cbc30974
Add ends-with operator and fix dataframe operator behavior ( #5395 )
...
* add ends-with operator
* escape needles in dataframe operator regex patterns
2022-05-02 20:02:38 +12:00
Darren Schroeder
e2b510b65e
update sys with new items, add kernel version to os-info ( #5308 )
...
* update sys with new items, add kernel version to os-info
* clippy
2022-04-23 16:33:27 -05:00
Herlon Aguiar
b9eb213f36
nu-cli/completions: added completion for $nu ( #5303 )
2022-04-23 11:49:17 +12:00
JT
cc78446ffd
Fix cd - ( #5301 )
2022-04-23 11:48:10 +12:00
Herlon Aguiar
5ff2ae628b
nu-cli: directory syntax shape + completions ( #5299 )
2022-04-22 15:18:51 -05:00
Reilly Wood
a26272b44b
Clean up tests and unused documentation code ( #5273 )
...
* Delete unused documentation code+test
* Fix up test to account for new select behavior
2022-04-21 06:13:58 -05:00
Darren Schroeder
d1cc70fc4a
update os-info os to name ( #5265 )
2022-04-21 10:36:39 +12:00
Darren Schroeder
f2d47f97da
add os to $nu based on rust's understanding ( #5243 )
...
* add os to $nu based on rust's understanding
* add a few more constants
2022-04-19 14:11:58 -05:00
JT
76079d5183
Move config to be an env var ( #5230 )
...
* Move config to be an env var
* fix fmt and tests
2022-04-19 10:28:01 +12:00
Sygmei
e206555d9d
add custom_completion field to .scope command ( #5227 )
2022-04-19 10:02:03 +12:00
Kat Marchán
1314a87cb0
update miette and switch to GenericErrors ( #5222 )
2022-04-19 00:34:10 +12:00
JT
14066ccc30
Fix known externals, fix operator spans ( #5140 )
2022-04-09 17:17:48 +12:00
Hristo Filaretov
683b912263
Track call arguments in a single list ( #5125 )
...
* Initial implementation of ordered call args
* Run cargo fmt
* Fix some clippy lints
* Add positional len and nth
* Cargo fmt
* Remove more old nth calls
* Good ole rustfmt
* Add named len
Co-authored-by: Hristo Filaretov <h.filaretov@protonmail.com>
2022-04-09 14:55:02 +12:00
Reilly Wood
b2c52b51b7
Change string contains operators to regex ( #5117 )
2022-04-07 18:23:14 +12:00
JT
591fb4bd36
Add unary not ( #5111 )
2022-04-07 07:10:25 +12:00
Jakub Žádník
12d3e4e424
Add env.nu file for environment config ( #5099 )
...
* Add env.nu file for environment config
* Add missing flag
* Add $nu.env-path variable
Prints `env.nu` path
* Add example of adding entries to PATH
2022-04-07 05:11:51 +12:00
Darren Schroeder
2cb815b7b4
Add starts with operator ( #5061 )
...
* add starts_with operator
* added a test
2022-04-01 13:35:46 -05:00
Jakub Žádník
2873e943b3
Add search terms to Command and Signature ( #4980 )
...
* Add search terms to command
* Rename Signature desc to usage
To be named uniformly with extra_usage
* Throw in foldl search term for reduce
* Add missing usage to post
* Add search terms to signature
* Try to add capnp Signature serialization
2022-03-27 22:25:30 +03:00
Jakub Žádník
3484e0defd
Add parser keyword note to help and $nu.scope ( #4978 )
2022-03-26 21:22:45 +02:00
Jakub Žádník
79e4d35f01
Remove is_private from $nu.scope.commands ( #4979 )
2022-03-26 21:22:35 +02:00
Darren Schroeder
285f91e67a
add module name to $nu.scope.commands
info ( #4877 )
2022-03-19 10:58:56 -05:00
Darren Schroeder
01c1e5e8b0
commands are either custom or builtin, not both ( #4876 )
...
* commands are either custom or builtin, not both
* clippy
2022-03-19 09:52:50 -05:00
Jakub Žádník
72daf8c64e
Fix reporting of which
and $nu.scope
( #4836 )
...
* Refactor & fix which
Instead of fetching all definitions / aliases, only show the one that is
visible.
* Fix $nu.scope to show only visible definitions
* Add missing tests file; Rename one which test
2022-03-13 21:32:46 +02:00
JT
ff3dffd813
Nu glob ( #4818 )
...
* Fork glob. Normalise license holder
* Fix more licenses
* unwraps
* bad doc test
2022-03-13 11:30:27 -07:00
Darren Schroeder
0ff9cc679e
add $nu.pid
( #4828 )
2022-03-12 10:54:59 -06:00
Darren Schroeder
ccc85a2979
remove $nu.cwd
( #4824 )
2022-03-12 09:11:19 -06:00
Jakub Žádník
90b2ec537f
Do not pass non-string env vars to externals ( #4748 )
...
* Do not pass non-string env vars to externals
Also misc cleanup
* Add note to default config
* Add a test
* Ensure PATH/Path conversion list <-> string
2022-03-12 00:18:39 +02:00
JT
12bf23faa6
Move completions to DeclId ( #4801 )
...
* Move completions to DeclId
* fmt
* fmt
2022-03-10 09:49:02 +02:00
JT
2ac990655e
Add support for var decl spans ( #4787 )
2022-03-09 04:42:19 -05:00
JT
1837bf775c
Default values ( #4770 )
2022-03-07 15:08:56 -05:00
JT
0b6b321ad6
More nuon tests, fix table print ( #4762 )
2022-03-07 08:39:02 -05:00
JT
9c17c73d5f
Add more exit code support ( #4730 )
2022-03-04 17:46:18 -05:00
JT
e64ca97fe2
move scope variable into nu variable ( #4725 )
2022-03-04 11:36:11 -05:00
Jakub Žádník
d90b7953dd
Use Nushell's PATH in which ( #4690 )
...
* Make which use our path instead of std::env
* Unignore which test
* Fix wrong fn signature without which feature
2022-03-03 10:38:31 +02:00
JT
88d7b50e37
Pass redirects into call ( #4694 )
...
* Pass redirects into call
* Oops, format
2022-03-02 07:52:24 -05:00
JT
a6a96b29cb
Add binary literals ( #4680 )
2022-02-28 18:31:53 -05:00
JT
7819210037
Add shortcircuiting boolean operators ( #4668 )
2022-02-27 17:02:53 -05:00
JT
4b18fdcc6e
Date literals ( #4619 )
...
* Date literals
* update deps
* Add date+duration
2022-02-23 21:02:48 -05:00
JT
676457acd3
Better ls paths ( #4612 )
...
* Fix ls paths... again
* Fix ls paths... again
* Always expand paths inside of glob_from
* Expand in ls before we check for directory info
2022-02-23 10:54:47 -05:00
JT
9888f8f298
Add pipeline redirection support ( #4594 )
...
* redirection
* Remove commented-out
* fix tests
* more fixes
2022-02-21 17:22:21 -05:00
JT
2ba12afb01
A few fixes to docs generation and default config ( #4570 )
...
* A few fixes to docs generation and default config
* A few more fixes
2022-02-20 15:20:41 -05:00
Jakub Žádník
56aacc4852
Use environment variable for env_conversions ( #4566 )
...
* Handle string->value env conv. with env. var.
Also adds the environment variable for Path/PATH and removes it from
config.
* Simplify getting the string->value conversion
* Refactor env conversion into its own function
* Use env var for to_string conversion; Remove conf
* Fix indentation in default config
2022-02-20 16:27:59 +02:00
JT
a32ce93c79
Improve full help for flags ( #4559 )
2022-02-19 21:25:52 -05:00
Darren Schroeder
9415352447
remove $nu.keybinding-path ( #4515 )
2022-02-17 14:36:08 -05:00
JT
f5f9d56c37
Move to a standard kebab/snake style ( #4509 )
2022-02-17 09:55:17 -05:00
JT
56b3fc61a3
Remove statements, replaced by pipelines ( #4482 )
2022-02-15 14:31:14 -05:00
JT
8c0a2d3c15
Auto-generate markdown command docs ( #4451 )
...
* Finish updating
* a couple improvements
* Update renames
* cleanup examples
2022-02-13 21:22:51 -05:00
Jakub Žádník
328f7e92a0
Hide alias ( #4432 )
...
* Add alias interning
Now, AliasId is used to reference aliases stored in EngineState, similar
to decls, blocks, etc.
* Fix wrong message
* Fix using decl instead of alias
* Extend also alias id visibility
* Merge also aliases from delta
* Add alias hiding code
Does not work yet but passes tests at least.
* Fix wrong alias lookup and visibility appending
* Add hide alias tests
* Fmt & Clippy
* Fix random clippy warnings in "which" command
2022-02-12 11:50:37 +02:00
JT
a16e485cce
Add support for defining known externals with their own custom completions ( #4425 )
...
* WIP for known externals
* Now completions can work from scripts
* Add support for definiing externs
* finish cleaning up old proof-of-concept
2022-02-11 13:38:10 -05:00