Skip to content

feat(ui): Effect Console (Ctrl+Space) to search and apply effects and presets at the pointer - #1105

Open
eliasx45 wants to merge 6 commits into
storytold:mainfrom
eliasx45:upstream/effect-console
Open

eliasx45 wants to merge 6 commits into
storytold:mainfrom
eliasx45:upstream/effect-console

Conversation

@eliasx45

@eliasx45 eliasx45 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Overlaps #918 (Effect Console by @vadmonboss). We're happy to defer to that PR: if you'd
rather take #918, close this one; anything useful here (the ranking, presets, automation ids,
tests) is free to borrow.

What

Edit ▸ Effect Console... (Ctrl+Space, app.fxConsole {query?}): a small search bar at the pointer
that applies effects and presets to the selected layers.

  • Ranks effects, text presets and user presets by name, word starts, initials (gb = Gaussian
    Blur) and letters in order; recent and favourite effects rank higher, Obsolete ones lower.
  • Enter applies and closes, Shift+Enter applies and stays open, arrows choose, Escape / Ctrl+Space
    / a click outside close. With no text it lists recent effects.
  • Off macOS a Ctrl shortcut also expects the command flag egui reports with Ctrl (otherwise
    Ctrl+Space never matched there).
  • docs/control-protocol.md lists app.fxConsole and its automation ids; the menu entry is
    translated in all ten catalogues.

Why

A fast, keyboard-first way to apply effects at the pointer (like the popular Effects Console
extension for After Effects). Split out of #858 as asked.

How tested

  • crates/ui-egui/tests/ui_fx_console.rs (open at the pointer, ranking, apply, Shift+Enter,
    close); written with the change, not re-run on this branch.
  • rustfmt --check and cargo check on the affected crates on current upstream main.

Current upstream integration

Merged current upstream main and retained the Ctrl/Cmd collision guard and its regression test. Formatting and strict workspace/all-target release Clippy passed, including compilation of UI regression targets. Full runtime CI and interactive UI QA were not rerun for this integration update. The choice between this PR and open #918 remains with maintainers.

Focused shortcut follow-up: two isolated tests of the committed parser/matcher passed with macOS and non-macOS compile-time modifier branches selected explicitly. They cover Cmd/Ctrl aliases, Ctrl+Shift, Ctrl+Space and the plus key. This is a source-level platform-mode check, not a Windows/Linux GUI execution.

0Elias71 and others added 3 commits October 12, 2026 19:20
…s at the pointer

A small search bar opens at the pointer (Edit > Effect Console..., app.fxConsole {query?}).
It ranks effects, text presets and user presets by name, word starts, initials (gb = Gaussian
Blur) and letters in order, boosting recent and favourite effects and sinking Obsolete ones.
Enter applies to the selected layers and closes, Shift+Enter applies and stays open, arrows
choose, Escape / Ctrl+Space / a click outside close. With no text it lists recent effects.
Off macOS a Ctrl shortcut now also expects the command flag egui reports with Ctrl.

(cherry picked from commit c88580b)

(cherry picked from commit c508d92a93299f0f5ec7986fc1c6f84aa243ff33)
(cherry picked from commit 36f3d65)

(cherry picked from commit ca3b1ee83c1c510cbff3177d7ec02040026516b1)
…utomation ids

(cherry picked from commit 49c8b99)

(cherry picked from commit 5e9995cc9a0c7fe597daf4231f11b51b4e35b5d4)
(cherry picked from commit f3b27e8)

(cherry picked from commit e59ab61277379ccf141c56b4a36009a149c60f9b)
…alogues

Every fixed menu entry needs a translation in each catalogue
(i18n::tests::every_translation_key_exists_in_the_actual_menu_tree).

(cherry picked from commit fe197b351cf60ca431078d31dfa05f6cb4116f73)
@echelon

echelon commented Oct 13, 2026

Copy link
Copy Markdown
Member

Thank you for this, @eliasx45!

Thanks for the Effect Console. We're holding it for one maintainer decision, picking it or #918 (both add Ctrl+Space). One thing to check meanwhile: parse_shortcut now also sets command for "Ctrl" off macOS, which changes every Ctrl binding on Windows and Linux. Please confirm the shortcut tests still pass (cargo xtask ci) and that no existing Ctrl shortcut changes behaviour.

If you are not on our Discord yet, please join us: https://discord.gg/artcraft

…with the same keys

Review on storytold#1105: parse_shortcut now gives Ctrl the command flag off macOS (egui reports both for
the Ctrl key), so Ctrl shortcuts fire there; before, they never matched. That makes Ctrl+X and
Cmd+X the same keys off macOS: the default preset has no such pair (its only Ctrl shortcuts are
Ctrl+Space and the macOS-only Ctrl+Cmd+F), and a custom Ctrl binding that would collide with a
Cmd one is now not bound, so no existing Cmd shortcut changes behaviour. Test:
ctrl_shortcuts_never_take_over_cmd_ones; dispatch_uses_the_active_custom_preset rebinds to
Ctrl+Alt+J (Ctrl+Alt+H is Toggle Hold Keyframe's Cmd+Alt+H off macOS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014d65YdNxQmjRkbXRtP2NwH
@eliasx45

Copy link
Copy Markdown
Contributor Author

@echelon Thanks. Fixed: off macOS, a Ctrl binding can never take over a Cmd one; colliding custom bindings aren't bound. Open question: Ctrl+Space here vs #918. Which should own it?

@eliasx45

Copy link
Copy Markdown
Contributor Author

@echelon Merged main (conflict in menus.rs resolved, keeping both the Physical+ skip and the Ctrl/Cmd collision guard). Shortcut tests pass (menus:: 17/17), including ctrl_shortcuts_never_take_over_cmd_ones. It checks that every default binding still binds to the same keys and command, so no existing Ctrl shortcut changes behaviour. Off macOS, a Ctrl binding is dropped only when a Cmd binding already uses the same keys. I haven't run the full cargo xtask ci locally; CI here covers it.

@eliasx45

Copy link
Copy Markdown
Contributor Author

@echelon Current-main integration is pushed with the Ctrl/Cmd collision guard retained. Strict all-target Clippy passes (including shortcut/UI test compilation). Two focused tests of the committed shortcut parser/matcher pass in macOS and non-macOS modifier modes, covering Cmd/Ctrl aliases, Ctrl+Shift, Ctrl+Space and the plus key. Full UI shortcut execution and Windows/Linux GUI QA were not rerun. The choice versus #918 remains for maintainers.

@bflatastic

Copy link
Copy Markdown
Member

Hi @eliasx45, thanks for this PR! main has changed a lot since it was opened, and it now conflicts with main, so it needs a rebase before we can review it for merging.

Most of the conflict comes from the shared module layout (#2491), which moved or split files this PR touches:

  • crates/engine/src/commands/frontend.rs → crates/engine/src/cmd/frontend.rs
  • crates/ui-egui/src/lib.rs was split: most of its code is now in app/*.rs and state.rs
  • crates/ui-egui/src/menus.rs was split: most of its code is now in menus/*.rs
  • crates/ui-egui/src/panels/mod.rs → crates/ui-egui/src/panels.rs

When you rebase, please also make sure it fits the other recent changes:

CI (cargo xtask ci) now runs on PRs. Once it's green on the rebased branch, we'll take a look. Thank you!

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants