David Matos
c3c3481ef5
fix color_config crashing on nonstring data ( #7215 )
...
This PR closses issue #7155 , where now providing a non valid color will
just ignore it and use the default.
Making the same changes as the original issue just starts nushell
without crashing.
2022-11-23 23:32:25 +01:00
JT
74a73f9838
Stdout/Stderr redirection ( #7185 )
...
This adds new pipeline connectors called out> and err> which redirect either stdout or stderr to a file. You can also use out+err> (or err+out>) to redirect both streams into a file.
2022-11-23 07:26:13 +13:00
Max Zhuravsky
8224ec49bc
Highlight matching brackets / parentheses ( #6655 )
...
* [4325] - wip
* [4325] - hightlight only matched symbol
* [4325] - cleanup
* [4325] - match bracket while typing
* [4325] - fix clippy
* [4325] - add bracket highlight configuration
* [4325] - fix working with non-ascii
2022-10-22 11:55:45 -05:00
nibon7
d255a2a050
Fix color parsing ( #6234 )
...
Signed-off-by: nibon7 <nibon7@163.com>
2022-08-05 06:30:44 -05:00
Stefan Holderbach
e5d38dcff6
Address lints from clippy for beta/nightly ( #5709 )
...
* Fix clippy lints in tests
* Replace `format!` in `.push_str()` with `write!`
Stylistically that might be a bit rough but elides an allocation.
Fallibility of allocation is more explicit, but ignored with `let _ =`
like in the clippy example:
https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string
* Remove unused lifetime
* Fix macro crate relative import
* Derive `Eq` for `PartialEq` with `Eq` members
https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
* Remove unnnecessary `.to_string()` for Cow<str>
* Remove `.to_string()` for `tendril::Tendril`
Implements `Deref<Target = str>`
2022-06-04 18:47:36 +12:00
Herlon Aguiar
5ff2ae628b
nu-cli: directory syntax shape + completions ( #5299 )
2022-04-22 15:18:51 -05:00
Darren Schroeder
10792a29f7
allow default color shortcut names ( #5177 )
...
* allow default color shortcut names
* clippy
2022-04-13 07:02:15 -05:00
JT
a6a96b29cb
Add binary literals ( #4680 )
2022-02-28 18:31:53 -05:00
JT
4b18fdcc6e
Date literals ( #4619 )
...
* Date literals
* update deps
* Add date+duration
2022-02-23 21:02:48 -05:00
Darren Schroeder
88fa40d698
rename flatshape_*
to shape_*
( #4589 )
2022-02-21 12:27:21 -06:00
Darren Schroeder
9b2a022f5b
tweak default config to amplify theme-ability ( #4572 )
...
* tweak default config to amplify theme-ability
* missed default of auto
2022-02-20 16:05:36 -06:00
JT
a16e485cce
Add support for defining known externals with their own custom completions ( #4425 )
...
* WIP for known externals
* Now completions can work from scripts
* Add support for definiing externs
* finish cleaning up old proof-of-concept
2022-02-11 13:38:10 -05:00
Fernando Herrera
89d99db94f
menu options ( #748 )
2022-01-15 17:01:44 +00:00
JT
fe5f65a247
Highlight block and record ( #653 )
2022-01-03 16:21:26 +11:00
JT
9535e2c309
Fix list and table print ( #652 )
...
* Fix list printing
* Fix list and table highlighting
2022-01-03 14:18:23 +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
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
Darren Schroeder
29c8b826d4
add configuration point for hint coloring ( #564 )
2021-12-23 15:02:57 -06: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
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