Reilly Wood
5cc6505512
Handle Windows drive paths in auto-cd ( #6051 )
...
* Handle Windows drive paths in auto-cd
* Limit `use regex` to Windows
* Use lazy_static for Windows drive path regex
* try fixing Clippy on *nix
2022-07-15 19:01:38 -07: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
Michael Angerman
8dea08929a
Cargo.lock was not checked in on typetag revert ( #6050 )
2022-07-14 13:30:25 -05:00
Maxim Zhiburt
61e027b227
nu-table: Bump tabled to master ( #6038 )
...
There was aparently some debug message on the target commit?
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-13 06:54:49 -05:00
Maxim Zhiburt
8b6232ac87
nu_table: Fix truncating logic ( #6028 )
...
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-12 13:35:05 -05:00
Maxim Zhiburt
217c2bae99
Move wrap responsibility on tabled ( #5999 )
...
* nu_table/ Replace wrap.rs logic by tabled::Width::wrap
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu_table: Rename wrap.rs to width_control.rs
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu_table: Add configuration of trimming
```
let-env config = ($env.config | upsert table_trim { methodology: 'wrapping', wrapping_try_keep_words: false })
let-env config = ($env.config | upsert table_trim { methodology: 'truncating', truncatting_suffix: '...@@...' })
```
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu_table: Fix right padding issue
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu_table: Fix trancate issue
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu_table: Fix spelling in config
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* nu_table: Update tabled dependency
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
* Update default_config.nu with a table_trim options
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
2022-07-12 11:23:50 -05:00
JT
a5470b2362
use simpler reedline ( #6016 )
2022-07-12 13:25:31 +12: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
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
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
dependabot[bot]
8abf28093a
Bump openssl-src from 111.20.0+1.1.1o to 111.22.0+1.1.1q ( #5971 )
...
Bumps [openssl-src](https://github.com/alexcrichton/openssl-src-rs ) from 111.20.0+1.1.1o to 111.22.0+1.1.1q.
- [Release notes](https://github.com/alexcrichton/openssl-src-rs/releases )
- [Commits](https://github.com/alexcrichton/openssl-src-rs/commits )
---
updated-dependencies:
- dependency-name: openssl-src
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-06 16:12:04 -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
Justin Ma
de162c9aea
Bump to 0.65.1 dev version ( #5962 )
2022-07-06 16:25:09 +12:00
Stefan Holderbach
89acbda877
Pin reedline to new 0.8.0 release ( #5954 )
...
For the nushell 0.65.0 release
https://github.com/nushell/reedline/releases/tag/v0.8.0
2022-07-05 21:25:35 +12:00
JT
0d40d0438f
bump to 0.65 ( #5952 )
2022-07-05 17:54:16 +12:00
JT
2ac5b0480a
Binary into int ( #5941 )
...
* Add support for binary to into int
* Add test
2022-07-04 06:31:50 +12:00
nibon7
5d00ecef56
Return error when external command core dumped ( #5908 )
...
* Return error when external command core dumped
Fixes #5903
Signed-off-by: nibon7 <nibon7@163.com>
* Use signal-hook to get signal name
Signed-off-by: nibon7 <nibon7@163.com>
* Fix comment
Signed-off-by: nibon7 <nibon7@163.com>
2022-07-01 08:58:21 -05:00
Darren Schroeder
8c9dced71b
fix excessive ansi escape sequences ( #5901 )
2022-06-27 18:51:14 -05:00
Benoît Cortier
228ede18cf
build: update miette
dependency ( #5889 )
2022-06-26 07:03:38 -05:00
Benoît Cortier
173d60d59d
Deprecate hash base64
, extend decode
and add encode
commands ( #5863 )
...
* feat: deprecate `hash base64` command
* feat: extend `decode` and `encode` command families
This commit
- Adds `encode` command family
- Backports `hash base64` features to `encode base64` and `decode base64` subcommands.
- Refactors code a bit and extends tests for encodings
- `decode base64` returns a binary `Value` (that may be decoded into a string using `decode` command)
* feat: add `--binary(-b)` flag to `decode base64`
Default output type is now string, but binary can be requested using this new flag.
2022-06-26 00:35:23 +03:00
JT
533e04a60a
Bump to 0.64.1 dev version ( #5865 )
2022-06-24 16:47:00 +12:00
Reilly Wood
2caa44cea8
Fix parser panic ( #5820 )
2022-06-17 11:11:48 -07:00
Darren Schroeder
a17d46f200
add more columns to the history command when using sqlite history ( #5817 )
2022-06-17 09:35:34 -05:00
Fernando Herrera
38f3957edf
update polars ( #5791 )
2022-06-15 11:45:03 -05:00
JT
d1c719a8cc
bump to 0.64 ( #5777 )
...
Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2022-06-15 14:39:17 +12:00
Stefan Holderbach
fe88d58b1e
Pin reedline v0.7.0 for the nushell v0.64.0 release ( #5781 )
...
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 ( #5721 )
...
This PR adds support for an SQLite history via nushell/reedline#401
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
WindSoilder
2e0b964d5b
handle SIGQUIT ( #5744 )
...
* handle sigquit
* fix clippy
2022-06-09 07:08:15 -05:00
pwygab
b8d253cbd7
Attempts to add a command that checks if nushell is running with admin priveleges ( #5712 )
...
* attempts to add is-admin command
* fmt and clippy
* fmt
* Update is_admin.rs
* typos
* typo in example
2022-06-06 06:55:23 -05:00
Stefan Holderbach
a82fa75c31
Update nu-ansi-term to remove Deref
impl ( #5706 )
...
Resolves an unexpected issue due to `Deref` and `ToString` interacting
Details: https://github.com/nushell/nu-ansi-term/pull/5 and https://github.com/nushell/reedline/pull/435#issuecomment-1141348209
Also updates reedline: Includes a fix for a panic when the directory containing the history is deleted during a running reedline session. (nushell/reedline#436 )
2022-06-03 21:38:54 +02:00
Reilly Wood
888758b813
Fix ls
for Windows system files ( #5703 )
...
* Fix `ls` for Windows system files
* Fix non-Windows builds
* Make Clippy happy on non-Windows platforms
* Fix new test on GitHub runners
* Move ls Windows code into its own module
2022-06-03 12:37:27 -04:00
Stefan Holderbach
8259d463aa
Update reedline ( #5678 )
...
More fixes/changes to default keybindings
2022-05-30 09:26:57 +02:00
Stefan Holderbach
fb89f2f48c
Update reedline: Support more bindings in vi mode ( #5654 )
...
Now more bindings are shared between vi-mode and emacs mode.
E.g. Ctrl-D, Ctrl-C, Ctrl-L, Ctrl-O will work in all modes.
Also arrow navigation extra functions will behave consistent.
2022-05-26 23:46:18 +02:00
Stefan Holderbach
d69a4db2e7
Unpin reedline for regular development ( #5634 )
...
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-05-26 23:21:16 +02:00
JT
8e98df8b28
bump to dev version ( #5635 )
2022-05-25 19:09:44 -05:00
Reilly Wood
2daf8ec72d
cargo update ( #5639 )
2022-05-25 13:13:14 -04:00
Reilly Wood
afcacda35f
Change embed-resource
dep to slimmer winres
( #5630 )
2022-05-24 23:28:10 -04:00
JT
06cf3fa5ad
Bump to 0.63 ( #5627 )
2022-05-25 11:33:28 +12:00
Stefan Holderbach
8018ae3286
Pin reedline v0.6.0 for the nushell v0.63.0 release ( #5620 )
...
Release notes: https://github.com/nushell/reedline/releases/tag/v0.6.0
This release contains several bug fixes and improvements to the vi-emulation and documentation.
- Improvements to the vi-style keybindings (@sadmac7000):
- `w` now correctly moves to the beginning of the word.
- `e` to move to the end of the word.
- Bugfixes:
- Support terminal emulators that erroneously report a size of 0x0 by assuming a default size to avoid panics and draw nevertheless (@DhruvDh)
- Fix `ListMenu` layout calculations. Avoids scrolling bug when wrapping occurs due to the line numbering (@ahkrr)
- Avoid allocating to the total history capacity which can cause the application to go out of memory (@sholderbach)
- Documentation improvements including addition of documentation intended for reedline developers (@petrisch, @sholderbach)
2022-05-24 00:39:55 +02:00
Stefan Holderbach
06199d731b
Use bleeding edge reedline, with fix for #5593 ( #5598 )
...
Fixes #5593 (OOM introduced with #5587 when no config was present and an attempt was
made to allocate all memory in advance)
Includes also other changes to reedline:
- Vi word definition fixed and `w` and `e` work as expected
2022-05-20 17:35:25 +02:00
Darren Schroeder
f0cb2f38df
refactor all write_alls to ensure flushing ( #5567 )
2022-05-17 13:28:18 -05:00
Reilly Wood
038391519b
Upgrade trash crate for faster non-Windows builds ( #5563 )
2022-05-16 17:48:41 -07:00
Fernando Herrera
8bd68416e3
Lazy dataframes ( #5546 )
...
* lazyframe definition
* expressions and lazy frames
* new alias expression
* more expression commands
* updated to polars main
* more expressions and groupby
* more expressions, fetch and sort-by
* csv reader
* removed open csv
* unique function
* joining functions
* join lazy frames commands with eager commands
* corrected tests
* Update .gitignore
* Update .gitignore
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-05-16 08:27:43 +01:00
Reilly Wood
d90b25c633
Look up git commit hash ourselves, drop libgit2 dependency ( #5548 )
2022-05-16 13:57:25 +12:00
Carl Schierig
ec804f4568
nu-command ls - bump umask crate to 2.0.0 ( #5514 )
2022-05-11 16:13:45 -05:00
JT
374757f286
Bump to the 0.62.1 dev version ( #5473 )
2022-05-08 08:38:12 +12:00
Darren Schroeder
768ff47d28
enable cd to work with directory abbreviations ( #5452 )
...
* enable cd to work with abbreviations
* add abbreviation example
* fix tests
* make it configurable
2022-05-06 07:58:32 -05:00
JT
d306b834ca
Bump to 0.62 ( #5422 )
2022-05-04 09:01:27 +12:00
Stefan Holderbach
d4371438d1
Pin reedline to v0.5.0 for the next release ( #5427 )
...
Release notes: https://github.com/nushell/reedline/releases/tag/v0.5.0
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-05-04 08:11:31 +12:00