Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
C# audioaudio-unitavaloniacpp20cross-platformdawdigital-audio-workstationdspjucelinux-audiomcp-servermidimusicmusic-productionpiano-rollplugin-hostsequencersynthesizervstvst3
Tasks: Cross-Platform Key Shortcut API & Builder
Phase 1 — Core Model in Nota.Application
- T001 Define
KeyGlyphsinNota.Application.Inputwith Unicode constants forCmd,Option,Ctrl,Shift,Backspace,Returnwith AGPL-3.0 header and English docstrings (src/managed/Nota.Application/Input/KeyGlyphs.cs) - T002 Define
ShortcutModifiersenum flags (None,Primary,Shift,Alt,Ctrl) inNota.Application.Input(src/managed/Nota.Application/Input/ShortcutModifiers.cs) - T003 Implement
Shortcutreadonly record struct with fluent modifiers (WithShift,WithAlt,WithCtrl), factory methods (Cmd,CmdShift,CmdAlt,Shift,Alt,None),ToGlyphs(),ToPlatformString(bool mac),ToKeyCaps(bool mac),Parse(string),SpellText(string, bool mac), andimplicit operator string(src/managed/Nota.Application/Input/Shortcut.cs)
Phase 2 — Avalonia Integration in Nota.App
- T004 Implement
ToGesture(this Shortcut s, bool mac)extension inNota.Appto convertShortcutinto AvaloniaKeyGesture(src/managed/Nota.App/Input/ShortcutAvaloniaExtensions.cs) - T005 Refactor
Commands.Parse,Commands.IsChord, andCommands.CanMenuGestureto leverageShortcut(src/managed/Nota.App/Commands.cs) - T006 Update
MenuKit.KeysandMenuKit.SpellKeysto useShortcut.SpellText(src/managed/Nota.App/MenuKit.cs) - T007 Update
CommandPaletteView.Capsto useShortcut.ToKeyCaps(src/managed/Nota.App/CommandPaletteView.cs) - T008 Route gesture parsing in
Commands.csthroughShortcut.ParseandToGesture(src/managed/Nota.App/Commands.cs)
Phase 3 — Command Catalog & UI Adoption
- T009 Refactor
CommandCatalog.csto useShortcutfactories (Shortcut.Cmd,Shortcut.CmdShift,Shortcut.CmdAlt,Shortcut.None) for all 33 command shortcuts (src/managed/Nota.Application/Palette/CommandCatalog.cs) - T010 Update
SessionView.Inspector.csaction shortcuts ("⌫","⌘⇧C","⌘V","↵") to useShortcut(src/managed/Nota.App/SessionView.Inspector.cs) - T011 Verify plain text hint strings continue formatting correctly via
MenuKit.Keysacross platforms
Phase 4 — Verification & Smoke Test
- T012 Implement unit tests in
Nota.SmokeTestvalidatingShortcutconstruction, canonical ordering, platform strings, key cap breakdown, and gesture conversion (tests/Nota.SmokeTest/ShortcutBuilderTests.cs,Program.cs) - T013 Verify that
PaletteTestsruns and passes (ensuring all catalog shortcuts match Settings → Shortcuts) - T014 Run
dotnet buildacross the solution and verify zero compilation errors or warnings