JT
4383b372f5
Cleanup binary stream print a little ( #637 )
2022-01-01 21:42:15 +11:00
Michael Angerman
5d58f68c59
port over from nushell the column flag for the length command ( #617 )
...
* port over from nushell the column flag for the length command
* fix clippy error
* refactor with the get_columns now centrally located
2022-01-01 15:27:20 +11:00
Michael Angerman
f734995170
move get_columns from the table_viewer to a central location ( #628 )
...
* get_columns is working in the columns command
* the new location of the get_columns method is nu-protocol/src/column.rs
* reference the new location of the get_columns method
* move get_columns to nu-engine
2021-12-31 17:39:58 -08:00
JT
15b979b06e
Bump reedline ( #634 )
2022-01-01 09:41:29 +11:00
Darren Schroeder
18ddcdcb97
type-o in signature ( #633 )
2021-12-31 09:54:30 -06:00
Tom Panton
822309be8e
Port the every
command ( #626 )
2021-12-31 10:41:18 +11:00
Justin
56ae07adb9
Ported ignore
command to engine-q ( #621 )
...
* Ported `ignore` command to engine-q
* Format ignore command
2021-12-30 15:54:33 +11:00
JT
80649f2341
Fix flattening of in-variable ( #624 )
2021-12-30 14:26:40 +11:00
Darren Schroeder
7faa4fbff4
revert file_types to lowercase ( #623 )
...
* revert file_types to lowercase
* fix test
2021-12-29 21:16:50 -06:00
JT
832a801c11
Preserve metatdata in where ( #618 )
2021-12-29 22:17:20 +11:00
JT
c8330523c8
Don't read config in a tight loop ( #614 )
2021-12-29 07:06:53 +11:00
JT
e94b8007c1
Allow update to also insert ( #610 )
2021-12-28 10:11:20 +11:00
JT
384ea111eb
Allow for and other commands missing positionals near keywords ( #606 )
...
* Allow for and other commands missing positionals near keywords
* A bit more resilience
2021-12-28 07:04:48 +11:00
Fernando Herrera
53330c5676
def argument check ( #604 )
...
* def argument check
* corrected test
* clippy error
2021-12-28 06:13:52 +11:00
Darren Schroeder
1837acfc70
add ability to specify an ansi style ( #595 )
...
* add ability to specify an ansi style
* remove comments
* remove more debug code
* some cleanup and refactoring
2021-12-27 08:59:55 -06:00
JT
1dbf351425
Handle external redirects better ( #598 )
...
* Handle external redirects better
* fix warnings
2021-12-27 08:58:53 -06:00
Michael Angerman
f50f37c853
fix issue #559 : to json -r serializes datetime without spaces ( #596 )
...
* fix issue #559 : to json -r serializes datetime without spaces
* add in a third test which checks spaces in both keys and values
* fix clippy error
2021-12-27 21:51:38 +11:00
JT
3706bef0a1
Require let to be a statement ( #594 )
2021-12-27 14:04:22 +11:00
JT
de30236f38
Fix ls listing ( #593 )
2021-12-27 12:46:32 +11:00
JT
e1c92e90ca
Add line ending autodetect to 'lines' ( #589 )
2021-12-27 10:11:18 +11:00
Stefan Holderbach
39f03bf5e4
Decode escaped newlines in history command ( #592 )
...
Reedline currently encodes newlines as `<\n>`
2021-12-27 10:11:08 +11:00
JT
e62e0fb679
Flush stmts ( #584 )
...
* Flush the stmt via table to the screen
* Fix test
2021-12-27 07:21:24 +11:00
JT
89a000a572
Fix some 'open' signature stuff ( #583 )
2021-12-26 09:13:43 +11:00
JT
ca6baf7a46
Add single tick string interpolation ( #581 )
...
* Add single tick string interpolation
* give string interpolation its own highlighting
2021-12-26 07:50:02 +11:00
JT
d603086d2f
Fix custom call scope leak, refactor tests ( #580 )
...
* Fix custom call scope leak, refactor tests
* Actually add tests
2021-12-26 06:39:42 +11:00
JT
a811eee6b8
Add support for 'open' ( #573 )
2021-12-25 06:24:55 +11:00
JT
1efae6876d
Wire hex viewing into a few more places ( #572 )
2021-12-25 05:15:01 +11: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
7f0921a14b
Add metadata command ( #569 )
...
* Add metadata command
* Add string interpolation to testing
2021-12-24 11:16:50 +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
29c8b826d4
add configuration point for hint coloring ( #564 )
2021-12-23 15:02:57 -06:00
Darren Schroeder
ba1ff4cf6c
add configuration of maximum history size ( #563 )
2021-12-23 13:59:00 -06:00
Fernando Herrera
f3c175562d
vi mode ( #561 )
2021-12-23 09:31:16 +00:00
Matthew Auld
c33104c4ae
Ported compact command to engine-q ( #558 )
...
* :Interm work porting compact to engine-q
* Port 'compact' command from nushell to engine-q
* Fixed example
2021-12-23 14:08:39 +11:00
Michael Angerman
5d3b63fa90
add in a raw flag in the command to json ( #555 )
...
* add in the method to_string_raw
* add in a raw flag to json
* add in a test
2021-12-23 06:56:49 +11:00
Jakub Žádník
061c822c5d
Add environment variables doc page ( #554 )
...
* Fix typos
* Add environment variables doc page
* Remove Breaking Changes page
2021-12-23 06:44:14 +11:00
JT
0c920f7d05
Add history command ( #553 )
2021-12-22 22:19:38 +11:00
Jakub Žádník
8ba3e3570c
Interpret lists as series of args for externals ( #550 )
...
* Interpret lists as series of args for externals
* Fix clippy warnings
2021-12-22 10:13:05 +02:00
Fernando Herrera
ea6912c3f7
missing commands ( #549 )
2021-12-22 10:35:02 +11:00
Jakub Žádník
deeb1da359
Allow having only one env conversion ( #548 )
...
Allows setting only `from_string` or `to_string` in `env_conversions`
config. Previously, both were required.
2021-12-22 00:32:38 +02:00
Jakub Žádník
52dba91e1a
Wrap captured env var names into quotes as well ( #546 )
2021-12-21 23:31:30 +02:00
JT
266fac910a
Signature improves, sorted completions ( #545 )
2021-12-22 07:50:18 +11:00
Fernando Herrera
3ad5d4af66
sort env vars ( #544 )
2021-12-22 07:27:19 +11:00
Ștefan
a93a9b9029
Add skip-empty flag to lines command ( #543 )
...
* Add skip-empty flag to lines command
* Fix failing length test
2021-12-22 07:24:11 +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
JT
c3a16902fe
Fix list printing ( #540 )
2021-12-21 20:05:16 +11:00
JT
fc7ed1bfe4
switch substring to bytes ( #538 )
...
* switch substring to bytes
* Add a test
2021-12-21 11:49:02 +11:00
Jakub Žádník
1609101e62
Fix capturing environment variables with " or ' ( #537 )
...
* Fix path expand error span
* Fix capturing env vars containing ' or "; Rustfmt
2021-12-20 23:19:43 +02:00
JT
0571a6ee34
Merged heterogeneous tables ( #536 )
...
* Merged heterogeneous tables
* switch emoji
2021-12-21 08:03:47 +11:00
JT
152467a858
Flatten should flatten embedded table ( #534 )
2021-12-21 06:03:18 +11:00
JT
caf73c36f2
Finish adding support for optional params ( #530 )
2021-12-20 17:58:09 +11:00
Fernando Herrera
e949658381
nothing variable ( #527 )
...
* nothing variable
* corrected comments
* added color to nothing like bool
* compare nothing with values
* comparison tests
2021-12-20 12:05:33 +11:00
Jae-Heon Ji
ff5b7e5ad2
feat(into): add into-bool command ( #499 )
...
* feat(into): add example of into-bool
* feat(into): add convert from int and float
* feat(into): add converting string to bool
* feat(into): add converting value in table
* fix(into): update error
* fix(into): update span for example
* chore(into): update signature description
* float comparison using epsilon
* Update bool.rs
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2021-12-20 07:11:28 +11:00
JT
cf5048205f
Allow empty span slice for now ( #529 )
2021-12-20 06:25:02 +11:00
Ștefan
c37bdcd119
port empty command ( #528 )
...
* port empty command
* Pull upstream and use test_data() function for example tests
2021-12-20 06:11:57 +11:00
Fernando Herrera
038ad951da
name change ( #526 )
2021-12-19 10:00:31 +00:00
JT
2883d6cd1e
Remove Span::unknown ( #525 )
2021-12-19 18:46:13 +11:00
JT
b54e9b6bfd
Fix completion crash ( #521 )
2021-12-19 07:10:40 +11:00
Fernando Herrera
ebf57c70e0
Plugin signature ( #520 )
...
* calling plugin without shell
* spelling error
* option on register to select a shell
* help in plugin example signature
2021-12-18 19:25:17 +00:00
Michael Angerman
00bb203756
add in a new command called columns ( #519 )
2021-12-18 12:14:28 -06:00
Fernando Herrera
8933dde324
Plugin option for shell ( #517 )
...
* calling plugin without shell
* spelling error
* option on register to select a shell
2021-12-18 12:13:56 -06:00
Darren Schroeder
b3b328d19d
add lp and rp ( #518 )
2021-12-18 12:13:10 -06:00
Fernando Herrera
46b86f3541
Migration of series commands ( #515 )
...
* corrected missing shellerror type
* batch dataframe commands
* removed option to find declaration with input
* ordered dataframe folders
* dataframe command name
* series commands
* date commands
* series commands
* series commands
* clippy correction
* rename commands
2021-12-18 17:45:09 +00:00
Fernando Herrera
d8847f1082
Calling plugin without shell ( #516 )
...
* calling plugin without shell
* spelling error
2021-12-18 09:52:27 -06:00
Ștefan
6f6340186a
Port flatten ( #512 )
...
* A first working version of flatten. Needs a lot of cleanup. Committing to have a working version
* Typo fix
* Flatten tests pass
* Final cleanup, ready for push
* Final cleanup, ready for push
* Final cleanup, ready for push
* Final cleanup, ready for push
* Update flatten.rs
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2021-12-18 07:44:51 +11:00
Matthew Auld
6ba1e6172c
Port 'ansi strip' command from nushell to engine-q ( #511 )
...
* Port 'ansi strip' command from nushell to engine-q
* added example
2021-12-18 07:32:03 +11:00
Matthew Auld
438c2df8b6
Porting 'ansi gradient' command from nushell to engine-q ( #509 )
...
* Porting 'ansi gradient' command from nushell to engine-q
* passed correct span variable
2021-12-18 04:40:47 +11:00
Jakub Žádník
6a0f404558
Treating environment variables as Values ( #497 )
...
* Proof of concept treating env vars as Values
* Refactor env var collection and method name
* Remove unnecessary pub
* Move env translations into a new file
* Fix LS_COLORS to support any Value
* Fix spans during env var translation
* Add span to env var in cd
* Improve error diagnostics
* Fix non-string env vars failing string conversion
* Make PROMPT_COMMAND a Block instead of String
* Record host env vars to a fake file
This will give spans to env vars that would otherwise be without one.
Makes errors less confusing.
* Add 'env' command to list env vars
It will list also their values translated to strings
* Sort env command by name; Add env var type
* Remove obsolete test
2021-12-17 12:04:54 +11:00
Arthur Targaryen
342584e5f8
Port keep
, keep while
and keep until
commands ( #384 )
...
* Add `KeepUntil` sub-command
* Add `KeepWhile` sub-command
* Add `Keep` command
* Fix error type
2021-12-17 11:57:02 +11:00
Matthew Auld
a148ad8697
added a 'list' option to the ansi command ( #504 )
2021-12-16 12:36:07 -06: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
Matthew Auld
89e2169521
Porting 'char' command from nushell to engine-q ( #500 )
...
* Port 'char' command from nushell to engine-q
* fixed unit tests
* Actually fixed unit tests
2021-12-16 10:08:12 +11:00
Matthew Auld
e289630920
Porting 'ansi' command from nushell to engine-q ( #494 )
...
* Porting 'ansi' command from nushell to engine-q
* Added StrCollect to example_test.rs to allow example tests to run
* Run 'cargo fmt' to fix formatting
* Update command.rs
* Update command.rs
* Update command.rs
* Added a category
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2021-12-16 10:06:35 +11:00
JT
1d74d9c5ae
Fix comment issue and shadowing issue ( #501 )
2021-12-16 09:56:12 +11:00
Michael Angerman
0450cc25e0
port over from nushell drop nth ( #498 )
2021-12-15 06:26:15 -06:00
JT
e9525627e6
Fix a couple crlf issues ( #496 )
2021-12-15 07:17:02 +11:00
Michael Angerman
1cbb785969
port over from nushell drop column ( #495 )
...
* port over from nushell drop column
* fix clippy
2021-12-15 06:54:27 +11:00
Benoît Cortier
a41ae72bc1
Fix error propagration across hash
commands ( #493 )
2021-12-15 06:49:48 +11:00
Darren Schroeder
a5c1dd0da5
allow fg, bg, attributes to be set for all colors in color_config ( #489 )
...
* allow fg, bg, attributes to be set for all colors in color_config
* no need for comma between each key value
2021-12-14 13:34:39 -06:00
JT
04a9c8f3fd
Fix bug in chained boolean typecheck ( #490 )
2021-12-14 16:19:16 +11:00
Jakub Žádník
930cb26e99
Fix hiding of import patterns with globs ( #487 )
...
* Fix glob hiding
* Remove docs comment
2021-12-13 20:35:35 +02:00
Darren Schroeder
3701fd1d76
allow user to use hex colors in config ( #486 )
2021-12-13 09:02:54 -06:00
JT
906c0e6bca
Better filepath completions ( #485 )
2021-12-13 17:46:30 +11:00
JT
1336acd34a
Seems ps still needs a delay to be accurate ( #484 )
2021-12-13 16:28:35 +11:00
JT
2013e9300a
Make config default if broken ( #482 )
...
* Make config default if broken
* Make config default if broken
2021-12-13 14:16:51 +11:00
Hilmar Gústafsson
90ddb23492
Add Path commands ( #280 )
...
* Add Path command
* Add `path basename`
* Refactor operate into `mod`
* Add `path dirname`
* Add `path exists`
* Add `path expand`
* Remove Arc wrapper for args
* Add `path type`
* Add `path relative`
* Add `path parse`
* Add `path split`
* Add `path join`
* Fix errors after rebase
* Convert to Path in `operate`
* Fix table behavior in `path join`
* Use conditional import in `path parse`
* Fix missing cases for `path join`
* Update default_context.rs
* clippy
* Fix tests
* Fix tests
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
Co-authored-by: JT <jonathan.d.turner@gmail.com>
2021-12-13 12:47:14 +11:00
JT
bee7ef21eb
Add in variable and sub-command completions ( #480 )
...
* WIP
* wip
* Add in variable and subcommand completions
* clippy
2021-12-13 10:18:31 +11:00
JT
d1d1402512
Add in auto-cd if you pass just a directory ( #479 )
...
* Add in auto-cd if you pass just a directory
* clippy
2021-12-13 08:41:34 +11:00
Jae-Heon Ji
6f53912655
Fix: add missing bind commands ( #477 )
...
* chore(random): update naming convention
* fix: add missing bind commands
2021-12-12 21:42:04 +02:00
Fernando Herrera
34a8a897c5
Plugin json ( #475 )
...
* json encoder
* thread to pass messages
* description for example
* check for help flag
2021-12-12 14:00:07 +00: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
Ștefan
7cbeebaac1
Port version ( #467 )
...
* First iteration of the version command
* Cleanup
* Fix the installed plugins bug
* Fix fmt check issue
* Fix clippy warning
* Fixing all clippy warnings
* Remove old code
2021-12-11 14:08:17 -06:00
Darren Schroeder
9d7685e565
add temp-path
to $nu
( #471 )
2021-12-11 14:00:29 -06:00
Darren Schroeder
c2aa6c708d
add cwd
to $nu
( #469 )
...
* add `cwd` to `$nu`
* oops
2021-12-11 13:38:36 -06:00
Darren Schroeder
626b1b99cd
add keybinding-path
to $nu
( #470 )
2021-12-11 13:29:56 -06:00
Darren Schroeder
4103abc685
add home-path
to $nu
( #468 )
2021-12-11 13:12:30 -06:00
Benoît Cortier
d0119ea05d
Sort default context items categorically ( #465 )
...
* Sort default context items categorically
* Separate commands in multiple statements
* Use curly braces instead of square brackets
This prevents undesired reformatting.
2021-12-10 21:07:39 -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