Stefan Holderbach
c140da5740
Update crossterm to version 0.24 ( #6172 )
...
- Includes version bump for `lscolors = 0.11` and `reedline` as git
patch
2022-07-30 11:41:15 +02:00
WindSoilder
586c0ea3d8
Add bits not command ( #6143 )
...
Add `bits not`
Options: `--number-bytes` and `--sized`
2022-07-30 11:25:44 +02:00
Justin Ma
767201c40d
bump to 0.66.3 dev version ( #6183 )
2022-07-30 05:48:10 +12:00
nibon7
9e24e452a5
Fix touch panics when using invalid timestamp ( #6181 )
...
Signed-off-by: nibon7 <nibon7@163.com>
2022-07-29 06:41:28 -05:00
Jakub Žádník
2cffff0c1b
Allow modules to use
other modules ( #6162 )
...
* Allow private imports inside modules
Can call `use ...` inside modules now.
* Add more tests
* Add a leak test
* Refactor exportables; Prepare for 'export use'
* Fix description
* Implement 'export use' command
This allows re-exporting module's commands and aliases from another
module.
* Add more tests; Fix import pattern list strings
The import pattern strings didn't trim the surrounding quotes.
* Add ignored test
2022-07-29 11:57:10 +03:00
nibon7
cf2e9cf481
Prevent mv panic again ( #6171 )
...
Closes #6170
Signed-off-by: nibon7 <nibon7@163.com>
2022-07-29 10:00:52 +03:00
JT
98e199f7b5
Move ls
back to last-known-good state ( #6175 )
...
* revert the recent ls changes
* cargo fmt
2022-07-29 11:00:54 +12:00
JT
10e463180e
Revert cp and mv back to last-known-good state ( #6169 )
2022-07-29 07:49:20 +12:00
Fernando Herrera
e2a21afca8
maintain quotes for arguments ( #6161 )
2022-07-28 16:35:55 +01:00
nibon7
2ea209bcc0
Prevent mv panic ( #6158 )
...
Signed-off-by: nibon7 <nibon7@163.com>
2022-07-28 01:15:02 -04:00
JT
e049ca8ebf
bump to 0.66.2 dev version ( #6157 )
2022-07-28 11:38:52 +12:00
nibon7
4c6cf36aa5
Fix ls panics when a file or directory not exists ( #6148 )
...
* Fix ls panics when a file or directory not exists
Fixes #6146
Signed-off-by: nibon7 <nibon7@163.com>
* add test
Signed-off-by: nibon7 <nibon7@163.com>
2022-07-27 18:53:00 +03:00
Jakub Žádník
c92211c016
Use relative paths as file-relative when parsing a file ( #6150 )
...
* Make function local (not used anywhere else)
* Use path relative to the parsed file
* Do not use real cwd at all
2022-07-27 18:36:56 +03:00
JT
9695331eed
require variable names to follow additional restrictions ( #6125 )
2022-07-27 14:08:54 +12:00
JT
d42cfab6ef
bump to 0.66.1 dev version ( #6140 )
2022-07-27 13:15:04 +12:00
JT
2b7c811402
fix 0.66 nu-command crate ( #6138 )
2022-07-27 11:20:12 +12:00
JT
c6cb491e77
bump to 0.66 ( #6137 )
2022-07-27 07:56:14 +12:00
JT
e2a4632159
move to latest stable reedline ( #6136 )
2022-07-27 07:19:38 +12:00
Matthew Ma
65f0edd14b
Allow multiple patterns in ls command ( #6098 )
...
* Allow multiple patterns in ls command
* Run formatter
* Comply with style
* Fix format error
2022-07-26 13:08:19 -05:00
pwygab
b12a3dd0e5
allow view-source to view aliases ( #6135 )
2022-07-26 08:06:16 -05:00
Darren Schroeder
d856ac92f4
expand durations to include month, year, decade ( #6123 )
...
* expand durations to include month, year, decade
* remove commented out fn
* oops, found more debug comments
* tweaked tests for the new way, borrowed heavily from chrono-humanize-rs
* clippy
* grammar
2022-07-26 08:05:37 -05:00
Darren Schroeder
8c675a0d31
update some dependencies ( #6131 )
2022-07-25 21:09:32 -05:00
JT
475d32045f
Revert "Refactor external command ( #6083 )" ( #6116 )
...
This reverts commit 0646f1118c
.
2022-07-26 05:37:15 +12:00
Justin Ma
9097e865ca
fix typo of port
command ( #6120 )
2022-07-25 07:07:26 -05:00
WindSoilder
894d3e7452
try make port test more reliable ( #6117 )
2022-07-25 06:42:06 -05:00
pwygab
8b35239bce
remove misleading example from source
( #6118 )
2022-07-25 11:52:16 +03:00
Matthew Ma
87e2fa137a
Allow cp multiple files at once ( #6114 )
...
* Allow cp multiple files at once
* Expand destination with expand_ndots
2022-07-25 10:42:25 +03:00
pwygab
5706eddee3
throw error if any? or all? expression invokes invalid command ( #6110 )
...
* throw error if any? or all? expression invokes invalid command
* fix tests for windows
2022-07-24 06:28:12 -05:00
Darren Schroeder
388ff78a26
trim spaces when converting strings to ints ( #6105 )
2022-07-23 09:23:04 -05:00
Matthew Ma
7d46177cf3
Allow mv multiple files at once ( #6103 )
...
* Allow mv multiple files at once
* Expand dots in mv src + dst
2022-07-23 07:51:41 -05:00
Mikołaj Powierża
a1a5a3646b
Bump powierza-coefficient
to 1.0.1
( #6099 )
2022-07-22 19:12:41 -05:00
Kangaxx-0
0646f1118c
Refactor external command ( #6083 )
...
Co-authored-by: Frank <v-frankz@microsoft.com>
2022-07-21 19:56:57 -04:00
Darren Schroeder
0bcfa12e0d
enable find to work on some external streams ( #6094 )
2022-07-21 13:19:16 -05:00
Fernando Herrera
b2ec32fdf0
concat string with lazy expressions ( #6093 )
2022-07-21 18:05:56 +01:00
pwygab
8f00848ff9
add a fair amount ofsearch terms ( #6090 )
2022-07-21 06:29:41 -05:00
Fernando Herrera
604025fe34
append string to series ( #6089 )
2022-07-21 10:42:12 +01:00
Darren Schroeder
db9b88089e
enable find to be able to highlight some hits ( #6086 )
...
* enable find to be able to highlight some hits
* oops, deps in the wrong place
2022-07-20 10:09:33 -05:00
WindSoilder
a35a71fd82
Make Semicolon stop on error ( #6079 )
...
* introduce external command runs to failed error, and implement semicolon relative logic
* ignore test due to semicolon works
* not raise ShellError for external commands
* update comment
* add relative test in for windows
* fix type-o
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-07-20 07:44:42 -05:00
pwygab
558cd58d09
make into string --decimals
add decimals to integer numbers ( #6084 )
...
* make `into string --decimals` add decimals to integer numbers
* add exception for 0
2022-07-20 06:16:35 -05:00
Kangaxx-0
eeaca50dee
Conditionally disable expansion for external command ( #6014 )
...
* Fix 5978
* Add unit test for explicit glob
* Format
* Expansion vs none-expansion
* Add unit tests
* Fix format..
* Add debug message for MacOS
* Fix UT on Mac and add tests for windows
* cleanup
* clean up windows test
* single and double qoutes tests
* format...
* Save format.
* Add log to failed windows unit tests
* try `touch` a file
* PS or CMD
* roll back some change
* format
* Remove log and test case
* Add unit test comments
* Fix
Co-authored-by: Frank <v-frankz@microsoft.com>
2022-07-17 16:30:33 -05:00
Fernando Herrera
9d0be7d96f
check column type during aggregation ( #6058 )
...
* check column type during aggregation
* check first if there is schema
2022-07-16 15:34:12 +01:00
pwygab
57a6465ba0
add split list
subcommand to split up lists ( #6062 )
...
* add `split list` subcommand to split up lists
* fmt
* fix shoddy signature
2022-07-16 06:24:37 -05:00
pwygab
3d45f77692
add wc
search term for size
and length
( #6056 )
2022-07-15 10:17:14 -05:00
Darren Schroeder
e01974b7ab
Ensure users colors are maintained when highlighting find matches ( #6054 )
2022-07-15 08:06:29 -05:00
Darren Schroeder
1f01677b7b
allow into int
to convert octal numbers and 0 padded strings ( #6053 )
...
* allow `into int` to convert octal numbers and 0 padded strings
* added some tests in examples
2022-07-15 07:47:33 -05:00
Maxim Zhiburt
7bf09559a6
Refactoring nu_table ( #6049 )
...
* nu-table: Remove unused dependencies
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Small refactoring
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Refactoring
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Refactoring alignments
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Add width check
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table/ Use commit instead of branch of tabled
To be safe
* Update Cargo.lock
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu-table: Bump tabled
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-14 15:24:32 -05:00
Jakub Žádník
26f31da711
Split merging of parser delta and stack environment ( #6005 )
...
* Remove comment
* Split delta and environment merging
* Move table mode to a more logical place
* Cleanup
* Merge environment after reading default_env.nu
* Fmt
2022-07-14 17:09:27 +03:00
pwygab
89b374cb16
allow for easy reset of config files with a single command ( #6041 )
...
* allow for easy config reset with a single command
* add slightly better help, rebase
* add option to make no backups, make all backups unique through including UNIX Epoch Time in the filename
* time is now formatted in rfc3339
* time is now formatted in a window-friendly format
2022-07-13 10:03:42 -05:00
nibon7
47c1f475bf
Fix panic when opening symlink which points to an inaccessible directory ( #6034 )
...
* Fix panic when opening symlink which points to an inaccessible directory
Fixes #6027
Signed-off-by: nibon7 <nibon7@163.com>
* tweak words
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-07-13 07:00:30 -05:00
Maxim Zhiburt
f2a79cf381
nu-table: Don't show empty header ( #6035 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-13 06:43:39 -05:00