diff --git a/Directory.Packages.props b/Directory.Packages.props index bd084c5..6fbcd80 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,7 +4,7 @@ - + diff --git a/Keybinding.Demo/Program.cs b/Keybinding.Demo/Program.cs index 7c5c69e..84cb2d6 100644 --- a/Keybinding.Demo/Program.cs +++ b/Keybinding.Demo/Program.cs @@ -342,9 +342,10 @@ private static void ShowProfileKeybindings(string profileId) AnsiConsole.WriteLine($"⌨️ Keybindings for '{profile.Name}' profile:"); - if (profile.Chords.Count != 0) + IReadOnlyDictionary chords = profile.GetAllChords(); + if (chords.Count != 0) { - foreach (KeyValuePair kvp in profile.Chords.OrderBy(k => k.Key)) + foreach (KeyValuePair kvp in chords.OrderBy(k => k.Key)) { Command? command = _manager.Commands.GetCommand(kvp.Key); AnsiConsole.WriteLine($" {kvp.Value} → {command?.Name ?? kvp.Key}"); @@ -496,7 +497,7 @@ private static void ListProfiles() string isActive = profile.Id == activeProfile?.Id ? " (active)" : ""; AnsiConsole.WriteLine($" {profile.Id}: {profile.Name}{isActive}"); AnsiConsole.WriteLine($" {profile.Description}"); - AnsiConsole.WriteLine($" Chords: {profile.Chords.Count}"); + AnsiConsole.WriteLine($" Chords: {profile.ChordCount}"); } }