Repository navigation
Conversation
Rukko
marked this pull request as ready for review
October 24, 2026 21:02
snapetech
added a commit
to snapetech-org/pleazyng
that referenced
this pull request
Oct 25, 2026
Squash of upstream edde746/plezy PR edde746#2824 by Rukko, merged into PlezyNG while it waits upstream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rukko
force-pushed
the
feat/subtitle-delay-shortcuts
branch
from
October 27, 2026 11:53
7d74784 to
2ad3047
Compare
Add two configurable video player shortcuts that step mpv's sub-delay by 50ms, the same step as the subtitle sync slider. Defaults are X (delay) and Z (advance), matching mpv. Holding the key repeats the step. The applied offset is recorded in PlayerSyncOffsets so the settings sheet reflects it, persisted under the configured sync offset scope, and announced with a player toast.
Rukko
force-pushed
the
feat/subtitle-delay-shortcuts
branch
from
November 10, 2026 01:43
2ad3047 to
75ac675
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two configurable video player shortcuts to adjust the subtitle sync offset (
sub-delay) without opening the settings sheet:XZThe defaults match mpv's own bindings, and both keys were unbound in Plezy. Both shortcuts can be reassigned in the keyboard shortcuts settings like any other action.
Behaviour
repeatable: true), and the offset is clamped to the existingScopedPlayerPrefssync offset limits.PlayerSyncOffsets, so the subtitle sync bar and the settings sheet show the new value.ScopedPlayerPrefs.writeunder the configured sync offset scope, the same way the speed shortcuts persist throughonSpeedPersist.Subtitle Sync +150ms).The actions are appended after
subSeekPrevso they sit next to the other subtitle shortcuts in settings. No existing entry is renamed or reordered.Translations
The two labels are translated in every locale, using each locale's existing wording for subtitles and the style of the neighbouring shortcut labels.
Testing
test/services/keyboard_shortcuts_service_test.dartcovering stepping, key repeat, the reported offset and the clamp at the sync offset limit.dart run scripts/checks/check_analyzer.dart,dart format,check-unused-code,scripts/checks/check_hardcoded_strings.pyandscripts/checks/clean_translations.py --check --strictpass locally.scripts/run_tests.shpasses except for 19 tests that fail identically on an unmodified checkout ofmainon Windows (mostlytest/scripts/upload_symbols_test.dart).AI assistance
This pull request was prepared with the assistance of Claude Opus 5.5.