2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-13 04:33:38 +00:00
Commit graph

5648 commits

Author SHA1 Message Date
Fernando Herrera
3c0bccb900
Exclude ./... from expansion ()
* exclude ./... from expansion

* use all instead of any

* no path expansion for external arguments

* clippy error

* expand only tilde
2022-06-22 22:00:30 -05:00
pwygab
f43a65d7a7
Prevents duplicate fields in transpose -r () 2022-06-22 19:19:06 -05:00
Darren Schroeder
0827ed143d
cleanup $config as a built-in () 2022-06-22 13:13:03 -05:00
Kangaxx-0
4b84825dbf
Remove externa nu from nu config () 2022-06-22 09:42:18 +03:00
WindSoilder
82ae06865c
Port command ()
* implement port command

* better comment

* fmt code

* fix example description

* fix usage

* fix tests
2022-06-21 23:27:58 -04:00
Darren Schroeder
128ce6f9b7
update reedline config based on recent reedline changes () 2022-06-21 12:22:11 -05:00
Fernando Herrera
44cbd88b55
allow comparison for similar types () 2022-06-21 12:15:31 -05:00
Fernando Herrera
7164929c61
Db commands without DB ()
* database commands without db

* database command tests
2022-06-21 12:14:29 -05:00
Justin Ma
848ff8453b
feat: Update dockerfile for latest nu release () 2022-06-21 18:28:31 +08:00
Kamil
f94ca6cfde
root/admin prompt is red now ()
I really miss bash's visual way of signalising root, i.e. blue: user, red: root

So I brought it to nushell (since you've added `is-admin` the code is fully portable and easily-readable) and hope you'll like it
2022-06-20 15:23:55 -05:00
WindSoilder
fab3f8fd40
fix exit code ()
* fix exit code

* fix usage

* add comment
2022-06-20 09:05:11 -05:00
pwygab
dbcfcdae89
calculates history duration properly () 2022-06-19 00:44:46 -04:00
Kangaxx-0
08aa248c42
Add more tests for completion ()
* Add more tests for completion

* Fix windows

* Cleanup
2022-06-18 19:42:00 -05:00
Darren Schroeder
9f07bcc66f
first stab at minimizing ansi escapes () 2022-06-17 22:07:46 -05:00
Reilly Wood
2caa44cea8
Fix parser panic () 2022-06-17 11:11:48 -07:00
pwygab
28c21121cf
fixes to nuon for inf, -inf, and NaN () 2022-06-17 21:01:37 +03:00
Darren Schroeder
a17d46f200
add more columns to the history command when using sqlite history () 2022-06-17 09:35:34 -05:00
Fernando Herrera
6cc8402127
Standardise to commands ()
* standarize to commands

* move from to to into
2022-06-17 07:51:50 -05:00
Kangaxx-0
5f0ad1d6ad
Fix alias completion crash ()
* Solve crash - commit 1

* commit 2 with issue

* Fix corner case

* Unit tests

* Fix windows tests
2022-06-17 07:50:10 -05:00
pwygab
8d7bb9147e
Attempts to fix file completions for open, rm and ls (and other filesystem commands) ()
* fixes the issue for 'open' and other commands that explicitly use `SyntaxShape::Filepath`

* fixes for `rm` and similar commands

* fixes for `ls`: potentially breaking?

* fmt

* a curious fix to the test

* a curious fix to the test, except for Windows this time

* fixes Windows tests failing

* resolves it by putting an explicit check for `ls`

* reverts unnecessary test changes; fmt

* changes the order of completion operations
2022-06-17 07:47:43 -05:00
Michael Angerman
bc48b4553c
Move the history and tutor commands out of core_commands ()
* move history and tutor commands from core to misc

* add in the Misc Category for the history and tutor commands
2022-06-16 09:58:38 -07:00
wolimst
28c07a5072
Add Windows Terminal profile and icon in Windows control panel ()
* Show icon in Windows 'Add/Remove Programs' control panel

* Add install option for Windows Terminal profile

* Re-create icon because the icon was not shwon in Windows Terminal

Procedure: opened the original file with GIMP and simply overwrited it
2022-06-16 09:46:33 -07:00
Jakub Žádník
30c8dabeb4
Add test requirements to PR template ()
* Add test requirements to PR template

* tweak words

* another tweak

* add /tests folder as a suggestion

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-06-16 08:14:59 -05:00
nibon7
8b368b6a4e
Fix drop nth with open end range on 32-bit platforms ()
Fixes 

Signed-off-by: nibon7 <nibon7@163.com>
2022-06-16 06:39:48 -05:00
WindSoilder
8c0d60d0fb
add notes for def_env ()
* add notes for def_env

* Update crates/nu-command/src/core_commands/export_def_env.rs

Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>

* Update crates/nu-command/src/core_commands/def_env.rs

Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>

Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
2022-06-16 06:37:44 -05:00
WindSoilder
8b0a4ccf4c
add light theme to default_config () 2022-06-16 06:19:49 -05:00
Michael Angerman
cfe4eff566
update default_context.rs to put the Du command in platform instead core () 2022-06-15 11:11:26 -07:00
Fernando Herrera
38f3957edf
update polars () 2022-06-15 11:45:03 -05:00
Justin Ma
cb66d2bcad
Try to fix winget package submit () 2022-06-15 07:35:28 -05:00
pwygab
ff73623873
shows location of sqlite3 history file ()
* shows location of sqlite3 file

* fmt
2022-06-15 10:06:49 +02:00
JT
d1c719a8cc
bump to 0.64 ()
Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2022-06-15 14:39:17 +12:00
WindSoilder
4d854f36af
add --values flag to sort record by values, by default, sort record by keys () 2022-06-14 20:42:22 -05:00
Fernando Herrera
8d5848c955
bool type for binary operations ()
* bool type for binary operations

* fixed type in commands
2022-06-14 20:31:14 -05:00
Stefan Holderbach
fe88d58b1e
Pin reedline v0.7.0 for the nushell v0.64.0 release ()
Includes the new History API and sqlite history backend

Release notes: https://github.com/nushell/reedline/releases/tag/v0.7.0
2022-06-14 23:21:14 +02:00
phiresky
42dbfd1fa0
SQLite History MVP with timestamp, duration, working directory, exit status metadata ()
This PR adds support for an SQLite history via 

The SQLite history is enabled by setting history_file_format: "sqlite" in config.nu.

* somewhat working sqlite history
* Hook up history command
* Fix error in SQlitebacked with empty lines

When entering an empty line there previously was the "No command run"
error with `SqliteBackedHistory` during addition of the metadata

May be considered a temporary fix

Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2022-06-14 22:53:33 +02:00
Kangaxx-0
534e1fc3ce
Add NU config to allow user be able to turn off external completion ()
* 06-07-wsl

* 06-07-linux-issue-with-delete-input

* 06-08-2023

* 06-08-Linux

* commit for merge

* Fix unit test

* format

* clean code

* Add flag to turn off external completion

* change env var to config

* Fix comment

Co-authored-by: Frank Zhang <v-frankz@microsoft.com>
2022-06-14 14:28:11 -05:00
Fernando Herrera
ff946a2f21
each while command ()
* each while command

* test value adjustment
2022-06-14 16:16:31 +02:00
WindSoilder
3c0cbec993
sort not change shape () 2022-06-14 06:41:45 -05:00
WindSoilder
48e29e9ed6
path join support multi path () 2022-06-14 06:34:00 -05:00
pwygab
ff53352afe
Add option to sort-by naturally ()
* add `natural` option to sort-by

* clippy

* Add tests
2022-06-14 09:03:13 +03:00
Mathspy
4fd4136d50
Should we keep old semantics of uniq command? ()
* Update uniq tests with less surprising output

* Remove original nushell surprising semantics
2022-06-14 16:04:29 +12:00
Stefan Stanciulescu
dc1248a454
Fix drop nth bug ()
* Fix drop nth bug on ranges. Should fix & close 

* Fix drop nth bug on ranges. Should fix & close 

* Add support for ranges

* Working version of drop nth, but the issue is that we unwrap the value which is problematic for Streams. Should convert to the way @stormasm was doing it before and implement the range check

* Fix fmt issue

* Drop nth now works for Lists, Records, and Ranges. We need support for ListStreams and for ExternalStreams

* Keep consistent naming

* Fix fmt issue

* Support ListStreams for drop nth

* Use DropNthIterator instead

* Found a more elegant way to deal with the check for no upper bound input

* Add extra checks for negative inputs or to < from for ranges

Co-authored-by: Stefan Stanciulescu <test@test.com>
2022-06-13 20:49:59 -07:00
Fernando Herrera
de554f8e5f
filesize conversion () 2022-06-13 14:44:32 -05:00
Fernando Herrera
44979f3051
expression to literal () 2022-06-13 13:22:46 -05:00
JT
7ae7394c85
Force floats to output a decimal in nuon ()
* Force floats to output a decimal in nuon

* Add test
2022-06-14 05:45:07 +12:00
Darren Schroeder
9dbf7556b8
more verbose error handling () 2022-06-13 07:01:00 -05:00
pwygab
caafd26deb
Attempts to add // math operator ()
* attempts to add `div` math operator

* allows `//` to be used too

* fmt:

* clippy issue

* returns appropriate type

* returns appropriate type 2

* fmt

* ensure consistency; rename to `fdiv`

* Update parser.rs
2022-06-13 13:54:47 +03:00
Justin Ma
43a218240c
Add setup-nu link in README.md () 2022-06-13 17:40:38 +08:00
Fernando Herrera
11d7d8ea1e
Remove dfr from dataframe commands ()
* input and output tests

* input and output types for dfr

* expression converter

* remove deprecated command

* correct expressions

* cargo clippy

* identifier for ls

* cargo clippy

* type for head and tail expression

* modify full cell path if block
2022-06-12 14:18:00 -05:00
WindSoilder
2dea9e6f1f
fix arg parse ()
* fix arg parse

* add ut, fix clippy

* simplify code

* fmt code
2022-06-11 20:52:31 +12:00