EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Merge main into feat/script-shortcuts
dotCooCooa78ce99c964f
diff --cc crates/ui-egui/src/menus/bar.rsindex b8953e71e,0610233de..8a0afc4f3--- a/crates/ui-egui/src/menus/bar.rs+++ b/crates/ui-egui/src/menus/bar.rs@@@ -160,14 -160,10 +160,15 @@@ fn menu_nodes"recentProjects" => app.session.prefs.recent_projects.get(i).cloned(),"recentFootage" => app.session.prefs.recent_footage.get(i).cloned(),"recentPresets" => app.session.prefs.recent_presets.get(i).cloned(),+ "recentScripts" => app.session.prefs.recent_scripts.get(i).map(|r| r.text().to_string()),_ => None,};- let r = ui.add_enabled(entry_enabled(app, e), egui::Button::new((gutter(entry_checked(app, e) == Some(true)), e.label.as_str())));+ let mut b = egui::Button::new((gutter(entry_checked(app, e) == Some(true)), e.label.as_str()));+ // File ▸ Scripts entries show the key a script was given.+ if let Some(s) = entry_shortcut(app, e) {+ b = b.shortcut_text(shortcut_text(&s));+ }+ let r = ui.add_enabled(entry_enabled(app, e), b);let r = match &tip {Some(t) => r.on_hover_text(t),None => r,diff --cc docs/scripting-parity.mdindex 0907ba828,5997a8bd1..c9fc03585--- a/docs/scripting-parity.md+++ b/docs/scripting-parity.md@@@ -26,7 -26,8 +26,8 @@@ our own scripts; no real-world script l| Startup / Shutdown folders | yes | not run | missing | plugins.md || `#include`, `#target` directives | yes | `#include` / `//@include` / `#includepath` inline files relative to the including script (once each, nested at most 32 deep, under the scripts' file gate; errors name the included file and line); `#target`, `#targetengine`, `#strict` are ignored | good | `tests_include.rs` (#759); installed scripts and panels have no folder of their own, so they include from the project's folder or absolute paths || `.jsxbin` | yes | no | out of scope | No public specification |-| Keyboard shortcuts for scripts | yes | no | missing | plugins.md |+| Keyboard shortcuts for scripts | yes: the scripts of the Scripts folder take keys, by their place in the alphabetical list | Edit ▸ Keyboard Shortcuts lists the scripts of File ▸ Scripts; a key stays with the script's file name | same | `file_scripts_entries_take_keyboard_shortcuts`, `a_key_given_to_a_script_runs_it` ([plugins.md](plugins.md)); ScriptUI panels in the Window menu take no key |+ | Recent Script Files | File ▸ Scripts ▸ Recent Script Files (10 scripts), a key to rerun | Same list, kept in the settings; Cmd+Alt+Shift+D reruns the most recent script | same | `recent_script_files_run_again` ([plugins.md](plugins.md)) || Command-line rendering `aerender` | yes | `effectcraft-cli render`, `script`, `exec` | same purpose | `apps/effectcraft-cli` || Essential Graphics scripting hooks | `addToMotionGraphicsTemplate…` | yes (M13.7) | good | — || Agent control (MCP, control channel, every command) | none | yes | beyond | [agents.md](agents.md), [control-protocol.md](control-protocol.md); `list_effects` omits parameter types and ranges (#441) |