Skip to content

feat(gui): record custom shortcuts and edit actions ring slots inline - #2719

Open
lucas77778 wants to merge 11 commits into
AprilNEA:masterfrom
lucas77778:fix/actions-ring-custom-shortcut-interaction
Open

lucas77778 wants to merge 11 commits into
AprilNEA:masterfrom
lucas77778:fix/actions-ring-custom-shortcut-interaction

Conversation

@lucas77778

Copy link
Copy Markdown

Summary

Record custom shortcuts on macOS and Windows and edit configurable Actions Ring slots in place.

Changes

  • openlogi-desktop and openlogi-ui group Custom Shortcut, Open Application or Folder, Type Text, Run AppleScript (macOS), and Run Shell Command under Shortcut. Selecting an action assigns it immediately. The list and ring show the same slot icon.
  • openlogi-hook, openlogi-agent, and openlogi-ipc capture keys for the inline recorder. Release all keys to save, or click × or move focus away to keep the previous binding.
  • openlogi-core, openlogi-inject, and openlogi-desktop preserve the side of a standalone modifier and compare shortcuts by the keys they send. In the same enabled ring layout, an existing Cmd+K blocks a recorded ⌘K on macOS and Ctrl+K on Windows.

Screenshots

Saved shortcut
Saved shortcut on macOS

Recording a shortcut on macOS
Recording a shortcut on macOS

Testing

  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace on macOS (4,946 passed, 5 ignored), including duplicate detection and preservation of the previous binding.
  • cargo xtask ci clippy-windows (cross-checked from macOS).
  • Verified shortcut recording with a physical keyboard on macOS.
  • On Windows, record Right Ctrl, replace it with Ctrl+Space, then cancel another recording and confirm Ctrl+Space remains bound.

Preserve modifier side in the key model and in platform key injection. Display Command on macOS while keeping saved shortcut names portable.
Ignore repeated key presses and complete a chord after its keys are released. Preserve the side of a modifier recorded on its own.
Feed native key transitions to the shared recorder. Handle macOS modifier flag changes and distinguish Windows AltGr from a physical Ctrl press.
Retire an active capture when its client cancels or a newer request arrives. Pin the request, recorded chord, and permission error to their wire encodings.
Keep a selected action in its slot before it has a value. Resolve its icon consistently in the editor and overlay, including the folder, type, and layers glyphs.
Group the five configurable actions under Shortcut and assign the chosen action immediately. Record keys or edit the selected value in place, with cancellation, conflict feedback, and localized prompts.
@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[High impact] The PR appears safe to merge; all previous findings are addressed and no new blocking issue was found.

Summary

The PR adds inline Actions Ring editors and native shortcut recording on macOS and Windows.

  • The Actions Ring editor assigns shortcut actions and lets users edit slot values inline.
  • Users can record a custom shortcut on macOS and Windows from its ring slot.
  • Recorded shortcuts keep modifier sides and match the keys each platform sends.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Select ring slot] --> B[Start inline edit]
  B --> C[Edit text]
  B --> D[Record keys through agent]
  C --> E{Submit while current?}
  D --> F{Current recording and valid shortcut?}
  E -->|Yes| G[Save slot]
  F -->|Yes| G
  E -->|No| H[Keep previous binding]
  F -->|No| H
  B -->|Cancel or lose focus| H
Loading

Reviews (2) · Last reviewed commit: "fix(gui): localize shortcut labels and e..." · Reviewed by Greptile

@davidbudnick davidbudnick added area: config Configuration files, persistence, and settings area: gui Graphical user interface platform: all Cross-platform issue type: feature New feature request labels Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: config Configuration files, persistence, and settings area: gui Graphical user interface platform: all Cross-platform issue type: feature New feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants