mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
feat(shortcuts): action registry + dynamic CLI help + new input targets (#435)
* feat(shortcuts): unify action-driven shortcut and CLI routing Centralize shortcut action metadata in one TypeScript registry and route keyboard, global shortcut, mini-window, and CLI inputs through shared runtime handlers. Keep CLI as an abstract transport layer by emitting player-command payloads without depending on shortcut definitions. * feat(shortcuts): generate CLI action help from shortcut registry Move no-arg player commands and their descriptions into the central action registry so CLI parsing and --player help are derived dynamically from one source of truth. Also route runtime action execution through the registry and remove duplicated shortcut runtime handling. * feat(shortcuts): add new input actions and hidden F1 help binding Add the requested input actions (search, advanced search, sidebar, mute, equalizer, repeat, now playing, lyrics, favorite current track) to the central shortcut action registry and wire runtime handlers for sidebar/equalizer toggles. Keep Help bound to F1 by default while hiding it from Settings input lists, and backfill persisted keybindings with new defaults so F1 works for existing users. Requested by @zunoz (Discord community).
This commit is contained in:
@@ -844,6 +844,16 @@ export const enTranslation = {
|
||||
shortcutFullscreenPlayer: 'Fullscreen player',
|
||||
shortcutNativeFullscreen: 'Native fullscreen',
|
||||
shortcutOpenMiniPlayer: 'Open mini player',
|
||||
shortcutStartSearch: 'Start a search',
|
||||
shortcutStartAdvancedSearch: 'Start an advanced search',
|
||||
shortcutToggleSidebar: 'Toggle Sidebar',
|
||||
shortcutMuteSound: 'Mute sound',
|
||||
shortcutToggleEqualizer: 'Open / Toggle Equalizer',
|
||||
shortcutToggleRepeat: 'Toggle Repeat',
|
||||
shortcutOpenNowPlaying: 'Open "Now Playing"',
|
||||
shortcutShowLyrics: 'Show Lyrics',
|
||||
shortcutFavoriteCurrentTrack: 'Add current track to favorites',
|
||||
shortcutOpenHelp: 'Help',
|
||||
playbackTitle: 'Playback',
|
||||
replayGain: 'Replay Gain',
|
||||
replayGainDesc: 'Normalize track volume using ReplayGain metadata',
|
||||
|
||||
Reference in New Issue
Block a user