Add mouse gesture practice mode and cheatsheet hints#774
Merged
multiplex55 merged 10 commits intomasterfrom Jan 31, 2026
Merged
Add mouse gesture practice mode and cheatsheet hints#774multiplex55 merged 10 commits intomasterfrom
multiplex55 merged 10 commits intomasterfrom
Conversation
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.
Motivation
Description
practice_modeboolean toMouseGestureSettingsandMouseGestureConfigwith defaultfalse, and wired it through runtime application logic insrc/plugins/mouse_gestures.rs.mg practicethat toggles practice mode and displays a toast; the toggle is implemented intoggle_practice_mode()and handled insrc/gui/mod.rs.src/mouse_gestures/service.rsto suppress emittingWatchEvent::ExecuteActionwhenpractice_modeis active while still logging matches/misses withtracing::info!.HintOverlayshows a multi-line cheat sheet (top gestures by iteration) and hides when the deadzone is exceeded; reusedHintOverlayfor multi-line display.candidate_matcheswith a fuzzy match-type label in the hint text.format_cheatsheet_text,match_type_label, constants for cheat-sheet delay/limit, and small hint formatting adjustments.Testing
tests/mouse_gestures_service.rs:practice_mode_suppresses_execute_actionandcheat_sheet_overlay_shows_after_delay_without_tokens, and updatedhint_text_includes_best_guess_and_match_typeexpectation to include the closest-match line.cargo test --test mouse_gestures_service, but the run failed during build due to a missing system dependency: thealsapkg-config entry required byalsa-syswas not available in the environment (pkg-config /alsa.pcnot found), so tests did not complete.Codex Task