Darren Schroeder
74d0f19291
added ability to opt in to normal string replacement in replace
cmd ( #5133 )
...
* added ability to opt in to normal string replacement in `replace` cmd
* type-o
2022-04-08 12:23:16 -05:00
JT
7ce570e52c
Update LICENSE
...
this isn't our crate originally, we adapted it
2022-04-08 21:53:29 +12:00
JT
3a0eded0b8
Delete LICENSE
...
this is dual-licensed, there can't be just one LICENSE file
2022-04-08 21:51:25 +12:00
JT
5afd45414e
Revert "nu-cli/completions: cache layer for fetching ( #5114 )" ( #5132 )
...
This reverts commit e86c1b118e
.
2022-04-08 21:48:27 +12:00
Michel Alexandre Salim
6ed033737d
Include license text in all crates ( #5094 )
...
* Include license text in all crates
Three crates already have license texts, so I'm keeping them, but
symlinking the `LICENSE` from the top level to the rest of the crate
directories. This works as long as `cargo publish` is done on a Unix-y
system and not Windows.
Also bump the copyright year to end in 2022.
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
* Replace symlinks
Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2022-04-08 10:47:13 +02:00
Reilly Wood
d38a3a8b4e
Fix command descriptions+examples ( #5129 )
...
* Fix exit usage
* Move dfr as-date* format examples to extra_usage
* Update command usage and examples
* More docs on `str trim`
Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2022-04-08 10:30:49 +02:00
Fernando Herrera
6b4cb8b0e0
short descriptions ( #5130 )
2022-04-08 07:57:39 +01:00
Herlon Aguiar
48fa25fd42
nu-cli/completions: removed default filter for command ( #5126 )
2022-04-07 18:45:04 -05:00
Darren Schroeder
bdfad6b1de
add keep deprecated commands ( #5124 )
2022-04-08 10:10:46 +12:00
JT
4f974efeba
Move 'keep' to 'take' ( #5123 )
2022-04-08 08:49:28 +12:00
Herlon Aguiar
e86c1b118e
nu-cli/completions: cache layer for fetching ( #5114 )
2022-04-08 07:36:16 +12:00
Herlon Aguiar
5e177fe8e7
nu-cli/completions: fix file completions filtering ( #5122 )
2022-04-08 07:31:56 +12:00
Darren Schroeder
4129f15eb9
update str find-replace
to str replace
( #5120 )
2022-04-07 08:41:09 -05:00
Robert Broketa
690ec9abfa
Implement rest of touch
flags ( #5119 )
...
* Add timestamp flag to `touch` command
* Add modify flag to `touch` command
* Add date flag to `touch` command
* Remove unnecessary `touch` test and fix tests setups
* Change `touch` flags descriptions
* Update `touch` example
* Add reference flag to `touch` command
* Add access flag to `touch` command
* Add no-create flag to `touch` command
* Replace `unwrap` with `expect`
2022-04-07 06:44:05 -05:00
Reilly Wood
b2c52b51b7
Change string contains operators to regex ( #5117 )
2022-04-07 18:23:14 +12:00
JT
888369022f
Add datetime to math-like ( #5118 )
...
* Add datetime to math-like
* add test
2022-04-07 18:02:28 +12:00
JT
4409185e1b
Improve describe to be more accurate ( #5116 )
2022-04-07 16:34:09 +12:00
JT
ef1934a7ee
Remove external name exceptions ( #5115 )
2022-04-07 14:01:31 +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
Herlon Aguiar
c3bed1352a
nu-cli/completions: prioritize non hidden folders ( #5108 )
2022-04-06 16:56:43 +01:00
Fernando Herrera
3ceb39c82c
use arc to avoid cloning entire engine for menus ( #5104 )
...
* use arc to avoid cloning entire engine for menus
* remove complete import path
* remove stack clone
* reference in completer
2022-04-06 13:25:02 +01:00
Herlon Aguiar
13869e7d52
nu-cli: refactor completions ( #5102 )
2022-04-06 19:58:55 +12:00
JT
121a4f06fb
Load plugins for scripts and commands, too ( #5105 )
2022-04-06 19:45:26 +12:00
Reilly Wood
d0e636ae7a
Trim newline from input
results ( #5097 )
2022-04-05 12:52:09 -05:00
Darren Schroeder
6e7e2dbb97
enables find to search records with regex ( #5100 )
...
* enables find to search records with regex
* clippy
2022-04-05 12:26:11 -05:00
Reilly Wood
d64cf1687e
Fix Format for non-basic data types ( #5095 )
2022-04-05 07:45:38 -05:00
Reilly Wood
657b631fdc
Add search terms to many commands ( #5096 )
2022-04-05 07:01:21 -05:00
Fernando Herrera
fa6ed7a40b
allow record as text style ( #5092 )
2022-04-04 22:36:48 +01:00
sholderbach
80f21d37e0
Update reedline to mut Completer API
2022-04-04 23:35:31 +02:00
Darren Schroeder
e2cf4cc7d6
new glob
command ( #5087 )
2022-04-05 08:45:01 +12:00
JT
abe028f930
Add raw strings, use raw strings for env ( #5090 )
2022-04-05 08:42:26 +12:00
Herlon Aguiar
ef1cf7e634
feature: Add some context to completions ( #5078 )
...
* send current line and position
* copy current line
* fix error
* deleted test completion
2022-04-05 06:31:40 +12:00
Elijah Koreman
1e4b33b9c6
Add quiet and feedback to mv command ( #5073 )
...
* Add quiet and feedback to mv command
* replaced filter and map with filter_map
2022-04-05 06:30:51 +12:00
Darren Schroeder
4654f03d31
update shadow-rs, update git2, remove indexmap from version
( #5086 )
2022-04-04 09:59:59 -05:00
Fernando Herrera
608b6f3634
Generic menus ( #5085 )
...
* updated to reedline generic menus
* help menu with examples
* generic menus in the engine
* description menu template
* list of menus in config
* default value for menu
* menu from block
* generic menus examples
* change to reedline git path
* cargo fmt
* menu name typo
* remove commas from default file
* added error message
2022-04-04 15:54:48 +01:00
Reilly Wood
a86e6ce89b
Set LAST_EXIT_CODE on parse error ( #5084 )
2022-04-04 06:11:27 -05:00
Reilly Wood
c4cfbaec2d
Fix Python plugin (missing search terms) ( #5083 )
...
* Add search_terms to Python plugin
* Clean up Python plugin comments
2022-04-03 20:00:53 -05:00
Reilly Wood
d40109f210
Tweak append+prepend help ( #5080 )
2022-04-03 17:50:22 -05:00
Reilly Wood
20be8a4987
Fix for search terms in help --find
( #5081 )
...
* Fix search terms in help --find
* Update help --find description
2022-04-03 17:37:22 -05:00
Hofer-Julian
d6dd4078b1
Remove enqine-q from issue template ( #5075 )
...
The notice is not necessary anymore since engine-q is merged now
2022-04-03 06:52:42 -05:00
JT
6649da3f5d
Add support for single value row conditions ( #5072 )
2022-04-03 10:41:36 +12:00
Michael Angerman
62901573d0
update the readme in the docs folder ( #5065 )
...
* update docs/Readme
* tweak readme
2022-04-01 13:48:09 -07:00
JT
80c9888f82
Add command descriptions to completions ( #5063 )
2022-04-02 08:18:11 +13:00
Simon Goller
19c3570cf9
Allow open to work with 'from ...' block commands ( #5049 )
...
* Remove panic from BlockCommands run function
Instead of panicing, the run method now returns an error to prevent
nushell from unexpected termination.
* Add ability to open command to run with blocks
The open command tries to parse the content of the file
if there is a command called 'from (file ending)'. This works
fine if the command was 'built in' because the run method doesn't
fail in this case. It did fail on a BlockCommand, though.
This change will first probe if the command contains a block and
evaluate it, if this is the case. If there is no block, it will run
the command the same way as before.
* Add test open files with BlockCommands
* Update open.rs
* Adjust file type on open with BlockCommand parser
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-04-02 07:52:32 +13:00
Darren Schroeder
2cb815b7b4
Add starts with operator ( #5061 )
...
* add starts_with operator
* added a test
2022-04-01 13:35:46 -05:00
Fernando Herrera
a088081695
update reedline ( #5062 )
2022-04-01 19:22:40 +01:00
JT
4bb95a880f
let a simple last be a single value ( #5060 )
2022-04-01 23:12:31 +13:00
JT
9beecff736
Add 'date to-record' ( #5058 )
2022-04-01 21:09:30 +13:00
JT
fa0400c3f2
Fix sort signature ( #5055 )
2022-04-01 13:03:07 +13:00