Patrik Svensson and GitHub
943c045fab
Fixes TextPath rendering bugs ( #1308 )
...
* Do not emit line break when rendering
* Don't be greedy when measuring.
* Fix a condition that decides if the path fits in the allotted space.
Closes #1307
2023-09-18 08:04:57 +02:00
Phil Scott and GitHub
ed9e198d60
Progress bar header and footer ( #1262 )
2023-09-16 22:39:43 +02:00
Patrik Svensson and GitHub
3bee7212b7
Merge pull request #1303 from nils-a/feature/GH-684
2023-09-16 19:37:00 +02:00
Patrik Svensson and GitHub
c82d8c4523
Add option to show separator between table rows ( #1304 )
...
* Add option to show separator between table rows
* Panels should show header if borders are not shown
Closes #835
2023-09-16 18:49:12 +02:00
Nils Andresen
bef21e8a21
( #684 ) Enable setting the color of the values in a BreakdownChart
2023-09-15 20:12:06 +02:00
Ola Bäcker and GitHub
037e109699
Fix figlet centering possibly throwing due to negative size ( #1302 )
2023-09-14 19:50:12 +02:00
Fraser Waters and GitHub
cec5fb4595
Render tables with zero-width columns ( #1197 )
...
Fixes https://github.com/spectreconsole/spectre.console/issues/361
2023-09-12 15:46:25 +02:00
Jeppe Roi Kristensen and Patrik Svensson
e0ded712e8
Add fix to avoid exception on Rows with no children
2023-06-13 00:36:06 +02:00
fredrikbentzen and Patrik Svensson
71a5d83067
Fixed render issue where writeline inside status caused corrupt output #415 #694
2023-06-04 20:31:12 +02:00
Elisha Aguilera and GitHub
018f4ebd17
Minor refactors ( #1081 )
2023-05-14 15:30:27 +01:00
Cédric Luthi and GitHub
6acf9b8c63
Add an implicit operator to convert from Color to Style ( #1160 )
2023-05-10 14:20:12 +01:00
MaxAtoms
1334319dd1
Add Alacritty as supported Ansi console
2023-04-03 12:42:24 +02:00
Patrik Svensson and GitHub
70da3f40ff
Merge pull request #1161 from MartinZikmund/dev/mazi/stringcomparer-confirmation
2023-03-16 09:57:15 +01:00
Martin Zikmund
5075732564
Adjustments based on code review
2023-03-16 09:45:42 +01:00
Gérald Barré
baa8220a52
Use StringComparison.Ordinal instead of culture-sensitive comparisons
2023-02-20 20:23:06 -05:00
Martin Zikmund
9cd7b24e65
Allow configuration of confirmation prompt comparison via StringComparer
2023-02-11 17:09:16 +01:00
Martin Zikmund
29846ba505
Ensure correct comparer is used for TextPrompt
2023-02-04 19:56:37 +01:00
Martin Zikmund
720db951f3
feat: Allow case-insensitive confirmation prompt
2023-02-04 13:24:11 +01:00
Patrik Svensson and GitHub
54be64ec84
Add JSON text renderer ( #1086 )
...
* Add JsonText widget to render highlighted JSON
Closes #1051
2022-12-31 18:17:15 +00:00
Nils Andresen and Patrik Svensson
f895bb175d
modified tokenizer to not break on on ]]] at the end of a style
2022-12-01 22:32:32 +01:00
Jaime Finat Sáez and GitHub
4258cbfb85
Performance issue solved ( #1096 )
2022-11-30 18:13:31 +01:00
Patrik Svensson and Patrik Svensson
55c3f3b7a8
Figlet text should not pad on right side automatically
2022-11-15 12:36:49 +01:00
Patrik Svensson and Patrik Svensson
02ff3fc910
Fix alignment bug
2022-11-15 12:36:49 +01:00
Patrik Svensson and GitHub
c3ec6a7363
Add Layout widget ( #1041 )
...
* Add width to panels
* Add height to panels
* Replace RenderContext with RenderOptions
* Remove exclusivity from alternative buffer
* Add Layout widget
* Add Align widget
2022-11-15 10:12:17 +01:00
Patrik Svensson and Patrik Svensson
a70cc90797
Fix issues with nullability and netstandard2.0
2022-11-10 12:01:13 +01:00
Patrik Svensson and Patrik Svensson
7dce4af552
Add support for .NET 7.0
2022-11-10 12:01:13 +01:00
Łukasz Sowa and GitHub
6a4d8c8f30
Add culture option to TypeConverterHelper, TextPrompt and AnsiConsole ( #1014 )
...
* Add culture option to TypeConverterHelper, TextPrompt and AnsiConsole
* Add IHasCulture interface
2022-10-15 11:19:06 +02:00
picture-vision and Patrik Svensson
f085da76c1
Added Suckless Simple Terminal (st) to list of ansi terminals
2022-10-13 22:32:11 +02:00
nilaoda and Patrik Svensson
8fa53f8fb1
Allow PACKET key on MultiSelectionPrompt
2022-10-13 20:43:03 +02:00
Salvage and Patrik Svensson
999c59909b
Fix @ being used in figlet font
2022-10-01 17:12:11 +02:00
Salvage and Phil Scott
422012c994
Make documentation consistent
2022-09-26 23:32:57 -04:00
Salvage and Phil Scott
4f0ec87522
Allow selections to wrap around
2022-09-26 23:32:57 -04:00
Gary McDougall and GitHub
eb02c3d534
Custom mask for secret ( #970 )
...
* Masking Character added, not yet used.
* Setting the masking character can be chained with other extensions.
* Added string extension for masking, and replaced hardcoded asterisks.
* Check if mask is null first.
* Fixed Typo in previous test and added new test for custom masks.
* Added tests for masking with null character
* Added docs and example.
* Adjusted extensions so that Mask is integrated into Secret extension. Updated Exampls and Tests accordingly
2022-09-26 20:34:41 +02:00
nkochnev and Patrik Svensson
1082ac1efc
Backward direction of autocomplete with Tab + Shift
2022-09-19 08:58:45 +02:00
Eduardo Cáceres and Patrik Svensson
a60910c15f
Update .NET 5 -> .NET 6 in docs
2022-09-19 08:47:23 +02:00
renovate[bot] and Patrik Svensson
73ab977f26
chore: Update dependency Wcwidth.Sources to v1
2022-09-17 13:52:22 +02:00
Cédric Luthi and Patrik Svensson
e96a821ead
Set the DevelopmentDependency flag on the Spectre.Console.Analyzer project
...
It was applied by mistake on Spectre.Console in #938 .
2022-09-06 19:03:22 +02:00
lonix1 and Patrik Svensson
506253bc34
build: set nuget package as dev dependency
...
Docs: https://github.com/NuGet/Home/wiki/DevelopmentDependency-support-for-PackageReference
2022-08-29 10:20:32 +02:00
Bastian Eicher and Patrik Svensson
90c2d988ab
Detect non-interactive console via System.Console.IsInputRedirected instead of Environment.UserInteractive
2022-08-29 08:57:53 +02:00
Nils Andresen and Patrik Svensson
2bd1383cbe
Fixed punctuation
2022-08-29 08:54:30 +02:00
Nils Andresen and Patrik Svensson
00a9ba325e
restructured MarkupTokenizer a bit.
2022-08-29 08:54:30 +02:00
Nils Andresen and Patrik Svensson
a6618f762c
Modified MarkupTokenizer
...
So escaped markup in markup is valid.
2022-08-29 08:54:30 +02:00
Nils Andresen and Patrik Svensson
638149f44b
fixed punctuation in exception
2022-08-29 08:54:30 +02:00
Nils Andresen and Patrik Svensson
d94dc2fcb2
fixed build error
...
error NU1504: Duplicate 'PackageReference' items
found. Remove the duplicate items or use the Update
functionality to ensure a consistent restore behavior. The duplicate
'PackageReference' items are: System.Memory 4.5.5, System.Memory 4.5.5.
2022-08-17 16:03:44 +02:00
Nils Andresen and Patrik Svensson
9d985f0f0a
( #922 ) fixed ArgumentNullException on .NET Framework
...
It seems, when Spectre.Console is compiled for
netstandard2.0, StackTrace.GetFrames() returns null
instead of an empty array.
2022-08-17 16:03:44 +02:00
Patrik Svensson and Patrik Svensson
dc93edef15
Remove the 'net50' TFM
...
Also updates all dependencies to the latest version.
Closes #829
2022-07-02 11:18:34 +02:00
Daniel Chalmers and Patrik Svensson
f3a82073d9
Check for null argument in TextPrompt
2022-06-30 20:08:04 +02:00
Patrik Svensson and Patrik Svensson
36ca22ffac
Move Spectre.Console.Cli to it's own package
2022-05-15 00:09:52 +02:00
Andreas Grünwald and GitHub
38d9386e00
Add option to configure the style of the choices list and the default value in TextPrompt ( #681 )
...
* Allow setting the style of the default value in TextPrompt
Add property "DefaultValueStyle" to TextPrompt which allows setting the style in which the default value is rendered.
When no style is set, the value is displayed as green text, keeping the existing behavior.
* Allow setting the style in which a TextPrompt's choices are displayed
Add property "ChoicesStyle" to TextPrompt which allows setting the style in the prompt's choices are rendered.
When no style is set, choices are displayed as blue text, keeping the existing behavior.
2022-03-27 19:38:01 +02:00
Cédric Luthi and GitHub
7998ece6b6
Obsolete the AnsiConsoleFactory class ( #585 )
...
`AnsiConsoleFactory` should be an internal static class. Creating an `IAnsiConsole` can be achieved through `Spectre.Console.AnsiConsole.Create(AnsiConsoleSettings)`
Since `AnsiConsoleFactory` is public, it can't be changed from a non static class to a static class so obsoleting it is the second best thing to do.
Eventually, when `AnsiConsoleFactory` becomes internal and static, `AnsiConsole.Create` can be simplified to this (and the private static field `_factory` can be removed)
```
public static IAnsiConsole Create(AnsiConsoleSettings settings)
{
return AnsiConsoleFactory.Create(settings);
}
```
2022-03-22 22:36:04 +01:00