feat(ui): Cheat-Sheet-Fenster im Hilfe-Menue
Sechs Markdown-Sheets (git, Conventional Commits, Claude CLI, Claude-Config, dotnet CLI, PowerShell) als EmbeddedResource, gerendert im modelosen, per Topmost anpinnbaren CheatSheetsWindow. MarkdownView bekommt dafuer das Opt-in CommandRows: `befehl` - beschreibung wird zu Mono-Chip + Copy-Button, jede ##-Sektion landet in einem Expander. Enthaelt ausserdem: Mission Control wird beim Oeffnen aus dem Minimiert-Zustand geholt, nicht nur aktiviert.
This commit is contained in:
@@ -515,6 +515,19 @@ public sealed partial class IslandsShellViewModel : ViewModelBase, IDisposable
|
||||
if (Dialogs is not null) await Dialogs.ShowAboutAsync(vm);
|
||||
}
|
||||
|
||||
// One shared VM so the sheets are parsed once and the window keeps its selection/pin
|
||||
// across reopens; the window itself is single-instance in the dialog service.
|
||||
private CheatSheetsViewModel? _cheatSheets;
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenCheatSheet(string? key)
|
||||
{
|
||||
if (Dialogs is null) return;
|
||||
_cheatSheets ??= new CheatSheetsViewModel();
|
||||
if (!string.IsNullOrEmpty(key)) _cheatSheets.Select(key);
|
||||
Dialogs.ShowCheatSheets(_cheatSheets);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task OpenLogVisualizer()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user