feat(shortcuts): make clipboard-video-append shortcut configurable (#158)

This commit is contained in:
2026-07-11 23:36:44 -07:00
committed by GitHub
parent 8797719a09
commit 6ab3d823a4
26 changed files with 87 additions and 18 deletions
+1
View File
@@ -103,6 +103,7 @@ export const CORE_DEFAULT_CONFIG: Pick<
openControllerDebug: 'Alt+Shift+C',
toggleSubtitleSidebar: 'Backslash',
toggleNotificationHistory: 'CommandOrControl+N',
appendClipboardVideoToQueue: 'CommandOrControl+A',
},
secondarySub: {
secondarySubLanguages: [],
+6
View File
@@ -646,5 +646,11 @@ export function buildCoreConfigOptionRegistry(
defaultValue: defaultConfig.shortcuts.toggleNotificationHistory,
description: 'Accelerator that toggles the overlay notification history panel.',
},
{
path: 'shortcuts.appendClipboardVideoToQueue',
kind: 'string',
defaultValue: defaultConfig.shortcuts.appendClipboardVideoToQueue,
description: 'Accelerator that appends a video path from the clipboard to the mpv playlist.',
},
];
}
+5
View File
@@ -236,7 +236,12 @@ export function applyCoreDomainConfig(context: ResolveContext): void {
'openCharacterDictionaryManager',
'openRuntimeOptions',
'openJimaku',
'openSessionHelp',
'openControllerSelect',
'openControllerDebug',
'toggleSubtitleSidebar',
'toggleNotificationHistory',
'appendClipboardVideoToQueue',
] as const;
for (const key of shortcutKeys) {
+1 -1
View File
@@ -600,7 +600,7 @@ function subsectionForPath(path: string): string | undefined {
) {
return 'Open Panels';
}
if (leaf === 'triggerSubsync') return 'Playback';
if (leaf === 'triggerSubsync' || leaf === 'appendClipboardVideoToQueue') return 'Playback';
return undefined;
}
return undefined;