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
Darren Schroeder
ad9449bf00
add ability to do into int on floats using a radix ( #6033 )
2022-07-12 20:37:57 -05:00
Darren Schroeder
c2f8f4bd9b
fix small bug converting string to int ( #6031 )
2022-07-12 19:34:26 -05:00
Maxim Zhiburt
93a965e3e2
nu_table: Fix style of tables with no header ( #6025 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-12 20:56:36 +03:00
pwygab
a54f9719e5
add unspanned
flag to error make, add tests ( #6017 )
...
* add `unspanned` flag to error make, add tests
* fmt
2022-07-12 06:03:50 -05:00
JT
a5470b2362
use simpler reedline ( #6016 )
2022-07-12 13:25:31 +12:00
Jakub Žádník
f3036b8cfd
Allow keeping selected environment variables from removed overlay ( #6007 )
...
* Allow keeping selected env from removed overlay
* Remove some duplicate code
* Change --keep-all back to --keep-custom
Because, apparently, you cannot have a named flag called --keep-all,
otherwise tests fail?
* Fix missing line and wrong test value
2022-07-11 23:58:28 +03:00
Darren Schroeder
9b6b817276
update some dependencies ( #6009 )
...
* update some dependencies
* there may be some bugs here but it seems to compile and run
* clippy
2022-07-11 11:18:06 -05:00
WindSoilder
9e3c64aa84
Add bytes collect, bytes remove, bytes build cmd ( #6008 )
...
* add bytes collect
* index_of support searching from end
* add bytes remove
* make bytes replace work better for empty pattern
* add bytes build
* remove comment
* tweak words
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-07-11 06:26:00 -05:00
pwygab
f85a1d003c
throw parser error when multiple short flags are defined without whitespace ( #6000 )
...
* throw error when multiple short flags are defined without whitespace
* add tests
2022-07-10 20:32:52 +12:00
Maxim Zhiburt
121e8678b6
nu-table: Fix a term_width value ( #5997 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-09 14:55:47 -05:00
WindSoilder
81df42d63b
add more bytes cmd ( #5989 )
2022-07-08 21:42:31 -05:00
Darren Schroeder
c0ce78f892
add the ability to highlight with regular expressiosn ( #5992 )
2022-07-08 16:28:10 -05:00
默可思
221f36ca65
Add --directory (-D) flag to ls, list the directory itself instead of its contents ( #5970 )
...
* Avoid extending the directory without globs in `nu_engine::glob_from`
* avoid joining a `*` to the directory without globs
* remove checks on directory permission and whether it is empty
The previous implemention of `nu_engine::glob_from` will extend the
given directory even if it containes no glob pattern. This commit
overcomes lack of consistency with the function `nu_glob::glob`.
* Add flag -D to ls, to list the directory itself instead of its contents
* add --directory (-d) flag to ls
* correct the difference between the given path and the cwd
* set default path to `.` instead of `./*` when --directory (-d) flag is true
* add comments
* add an example
* add tests
* fmt
2022-07-08 14:15:34 -05:00
valdaarhun
125e60d06a
Add search terms to 'math' commands ( #5990 )
...
* Remove 'average' from search_terms
* Add search_terms to 'floor' and 'variance'
2022-07-08 09:14:51 -05:00
Reilly Wood
83458510a9
Revert "Return error when external command core dumped ( #5908 )" ( #5987 )
...
This reverts commit 5d00ecef56
.
2022-07-07 20:00:04 -04:00
Darren Schroeder
eac5f62959
tweak the find hit highlighting ( #5981 )
2022-07-07 11:32:58 -05:00
Darren Schroeder
b19cc799aa
make history.txt and history.sqlite3 tables have same command column ( #5980 )
2022-07-07 07:59:00 -05:00
Darren Schroeder
efa56d0147
add the ability to highlight searched for terms ( #5979 )
2022-07-07 07:14:06 -05:00
pwygab
47f6d20131
adds better error for failed string-to-duration conversions ( #5977 )
...
* adds better error for failed string-to-duration conversions
* makes error multi-spanned, conveys literally all the information available now
2022-07-07 05:54:38 -05:00
WindSoilder
e0b4ab09eb
compatible with old rust ( #5974 )
2022-07-06 18:22:45 -05:00
Maxim Zhiburt
d1687df067
Give tabled a try ( #5969 )
...
* Drop in replacement from nu-table to tabled.
Must act the same way as original nu-table.
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
Fix some issues
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Bump ansi-str version
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Update to latest
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix footer issue
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix header alignment
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix header style
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Use latest tabled/ansi-str
* Refactorings
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Fix clippy warnings
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-06 14:57:40 -05:00
pwygab
e77219a59f
allow where
to work with variables ( #5955 )
...
* allow `where` to work with variables; breaking change
* change is no longer breaking, adds named to allow passage of blocks
* adds tests
* fmt
2022-07-06 08:49:07 -05:00
WindSoilder
22edb37162
Add some bytes relative cmd ( #5967 )
...
* add reverse, ends_with command
* add bytes replace, make little refactor
* add bytes add
2022-07-06 08:25:37 -05:00
Darren Schroeder
1ac87715ff
add bytes root command ( #5956 )
...
* add bytes root command
* fixed type-o
2022-07-06 16:46:56 +12:00