Skip to content

Commit 396b5ea

Browse files
committed
Merge branch 'v2_develop' into v2_release
2 parents 9f950be + dfb3e92 commit 396b5ea

File tree

6 files changed

+61
-14
lines changed

6 files changed

+61
-14
lines changed

GitVersion.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ mode: ContinuousDeployment
22
tag-prefix: '[vV]'
33
continuous-delivery-fallback-tag: dev
44
branches:
5-
v2_develop:
5+
develop:
66
mode: ContinuousDeployment
7-
tag: dev
8-
regex: ^v2_develop?[/-]
7+
tag: develop
8+
regex: v2_develop
99
tracks-release-branches: true
10-
is-source-branch-for: ['v2_release']
10+
is-source-branch-for: ['main']
1111
source-branches: []
1212

13-
v2_release:
13+
main:
1414
mode: ContinuousDeployment
1515
tag: prealpha
1616
regex: v2_release
1717
is-release-branch: true
18-
source-branches: ['v2_develop']
18+
source-branches: ['develop']
1919

2020
v1_develop:
2121
mode: ContinuousDeployment
22-
tag: dev
22+
tag: v1_develop
2323
regex: v1_develop
2424
source-branches:
2525
- v1_release
@@ -38,8 +38,8 @@ branches:
3838
tag-number-pattern: '[/-](?<number>\d+)'
3939
regex: ^(pull|pull\-requests|pr)[/-]
4040
source-branches:
41-
- v2_develop
42-
- v2_release
41+
- develop
42+
- main
4343
- feature
4444
- support
4545
- hotfix

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ cd myproj
2828
dotnet run
2929
```
3030

31+
There is also a [visual designer](https://github.com/gui-cs/TerminalGuiDesigner) (uses Terminal.Gui itself).
32+
3133
## Documentation
3234

3335
* [Getting Started](https://gui-cs.github.io/Terminal.GuiV2Docs/docs/getting-started.html)
@@ -47,14 +49,16 @@ The team is looking forward to seeing new amazing projects made by the community
4749

4850
## Sample Usage in C#
4951

50-
The following example shows a basic Terminal.Gui application in C#:
51-
52-
[!code-csharp[](./Example/Example.cs)]
52+
The following example shows a basic Terminal.Gui application in C#:
53+
[Example (source)](./Example/Example.cs)
5354

5455
When run the application looks as follows:
5556

5657
![Simple Usage app](./docfx/images/Example.png)
5758

59+
## Sample usage in F#
60+
F# examples are located [here](./FSharpExample/Program.fs)
61+
5862
## Installing
5963

6064
Use NuGet to install the `Terminal.Gui` NuGet package: https://www.nuget.org/packages/Terminal.Gui

Terminal.Gui/Terminal.Gui.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<!-- =================================================================== -->
33
<!-- Version numbers -->
4-
<!-- Automatically updated by gitversion (run `dotnet-gitversion /updateprojectfiles`) -->
4+
<!-- Automatically updated by gitversion (run `dotnet-gitversion`) -->
55
<!-- GitVersion.xml controls settings -->
66
<!-- =================================================================== -->
77
<PropertyGroup>

Terminal.Gui/Text/TextFormatter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ public static string RemoveHotKeySpecifier (string text, int hotPos, Rune hotKey
21242124
var start = string.Empty;
21252125
var i = 0;
21262126

2127-
foreach (Rune c in text)
2127+
foreach (Rune c in text.EnumerateRunes ())
21282128
{
21292129
if (c == hotKeySpecifier && i == hotPos)
21302130
{

UnitTests/Views/LabelTests.cs

+12
Original file line numberDiff line numberDiff line change
@@ -1460,4 +1460,16 @@ public void CanFocus_True_MouseClick_Focuses ()
14601460
Application.Top.Dispose ();
14611461
Application.ResetState ();
14621462
}
1463+
1464+
// https://github.com/gui-cs/Terminal.Gui/issues/3893
1465+
[Fact]
1466+
[SetupFakeDriver]
1467+
public void TestLabelUnderscoreMinus ()
1468+
{
1469+
var lbl = new Label ()
1470+
{
1471+
Text = "TextView with some more test_- text. Unicode shouldn't 𝔹Aℝ𝔽!"
1472+
};
1473+
lbl.Draw ();
1474+
}
14631475
}

delist-nuget.ps1

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
$apiKey = "key" # Replace with your actual API key
2+
# Unlist all packages matching "2.0.0-v2-develop.*"
3+
# PowerShell script to unlist NuGet packages using dotnet CLI
4+
$packageId = "terminal.gui" # Ensure this is the correct package name (case-sensitive)
5+
$packagePattern = "^2\.0\.0-v2-develop\..*$" # Regex pattern for filtering versions
6+
$nugetSource = "https://api.nuget.org/v3/index.json"
7+
8+
# Fetch package versions from NuGet API
9+
$nugetApiUrl = "https://api.nuget.org/v3-flatcontainer/$packageId/index.json"
10+
Write-Host "Fetching package versions for '$packageId'..."
11+
12+
try {
13+
$versionsResponse = Invoke-RestMethod -Uri $nugetApiUrl
14+
$matchingVersions = $versionsResponse.versions | Where-Object { $_ -match $packagePattern }
15+
} catch {
16+
Write-Host "Error fetching package versions: $_"
17+
exit 1
18+
}
19+
20+
if ($matchingVersions.Count -eq 0) {
21+
Write-Host "No matching packages found for '$packageId' with pattern '$packagePattern'."
22+
exit 0
23+
}
24+
25+
# Unlist each matching package version
26+
foreach ($version in $matchingVersions) {
27+
Write-Host "Unlisting package: $packageId - $version"
28+
dotnet nuget delete $packageId $version --source $nugetSource --api-key $apiKey --non-interactive
29+
}
30+
31+
Write-Host "Operation complete."

0 commit comments

Comments
 (0)