Change default gesture swipes to desktop switching#270
Conversation
Greptile SummaryThis PR changes the default left/right swipe gesture actions from tab navigation (
Confidence Score: 5/5Safe to merge — the change is a two-line update to first-run defaults with no impact on saved user configurations. The only touched code is the default_gesture_binding function, which seeds the UI picker on first run. Existing tests in config.rs compare results against default_gesture_binding(dir) rather than hardcoded action variants, so they stay correct automatically. The new mapping (Left → PreviousDesktop, Right → NextDesktop) matches the macOS Spaces spatial layout and is more broadly useful as a default than browser-tab navigation. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
G[Gesture Input] --> D{Direction}
D -->|Up| MC[MissionControl]
D -->|Down| SD[ShowDesktop]
D -->|Left| PD[PreviousDesktop ✨ changed]
D -->|Right| ND[NextDesktop ✨ changed]
D -->|Click| AE[AppExposé]
style PD fill:#d4edda,stroke:#28a745
style ND fill:#d4edda,stroke:#28a745
Reviews (1): Last reviewed commit: "Change default gesture swipes to desktop..." | Re-trigger Greptile |
Summary
Split out from #94 as requested.
This PR changes the default horizontal gesture-button swipes from browser tab switching to desktop/space switching:
Why
AprilNEA asked to keep this UX decision separate from the wheel-scroll settings work, so each change can be reviewed and reverted independently.
The wheel-scroll settings remain in #94. This PR contains only the default gesture remap.
Verification
cargo fmt --allgit diff --checkcargo test -p openlogi-core default_gesture_binding --libwas attempted locally, but dependency fetching hung while updating git dependencies before compilation.