Default keys for ten commands that had none
Title/Action Safe ('), Zoom to Fit Comp (Shift+;), Custom resolution
(Cmd+Alt+J), Purge Snapshot (Cmd+Shift+F5), Bilinear / Bicubic sampling (Alt+B,
Alt+Shift+B), Set Proxy (Cmd+Alt+P), most recent project (Cmd+Alt+Shift+P), last
animation preset (Cmd+Alt+Shift+F) and Paste Reversed Keyframes (Cmd+Shift+V).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
92e3939ca7
commit
6f5bd0c272
|
|
@ -582,7 +582,15 @@ pub fn specs() -> Vec<CommandSpec> {
|
|||
cmd!("edit.history", "History", [], None, "{steps?: n (undo n steps), redo?: n}", has_history, history),
|
||||
cmd!("file.importRecent", "Import Recent Footage", [], None, "{index? | path?}", has_recent_footage, import_recent),
|
||||
cmd!("file.clearRecentFootage", "Clear Recent Footage", ["File", "Import Recent Footage"], None, "{}", has_recent_footage, clear_recent_footage),
|
||||
cmd!("anim.applyRecentPreset", "Recent Animation Presets", [], None, "{index? | path?, layers?}", has_recent_presets, apply_recent_preset),
|
||||
cmd!(
|
||||
"anim.applyRecentPreset",
|
||||
"Recent Animation Presets",
|
||||
[],
|
||||
Some("Cmd+Alt+Shift+F"),
|
||||
"{index? | path?, layers?}",
|
||||
has_recent_presets,
|
||||
apply_recent_preset
|
||||
),
|
||||
cmd!(
|
||||
"anim.clearRecentPresets",
|
||||
"Clear Recent Presets",
|
||||
|
|
|
|||
|
|
@ -863,7 +863,15 @@ pub fn specs() -> Vec<CommandSpec> {
|
|||
has_comp,
|
||||
paste_svg
|
||||
),
|
||||
cmd!("edit.pasteReversedKeyframes", "Paste Reversed Keyframes", ["Edit"], None, "{layers?, prop?|path?, time?}", has_key_clip, paste_reversed),
|
||||
cmd!(
|
||||
"edit.pasteReversedKeyframes",
|
||||
"Paste Reversed Keyframes",
|
||||
["Edit"],
|
||||
Some("Cmd+Shift+V"),
|
||||
"{layers?, prop?|path?, time?}",
|
||||
has_key_clip,
|
||||
paste_reversed
|
||||
),
|
||||
cmd!("edit.clear", "Clear", ["Edit"], Some("Delete"), "{layers?}", layers_or_keys, delete),
|
||||
cmd!("edit.duplicate", "Duplicate", ["Edit"], Some("Cmd+D"), "{layers?} (effects or shape items when they are selected)", has_layers, duplicate),
|
||||
cmd!("edit.splitLayer", "Split Layer", ["Edit"], Some("Cmd+Shift+D"), "{layers?}", has_layers, split),
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
|||
has_comp_selection,
|
||||
create_proxy
|
||||
),
|
||||
cmd!("file.setProxy", "File...", ["File", "Set Proxy"], None, "{path, items?|item?}", has_targets, set_proxy),
|
||||
cmd!("file.setProxy", "File...", ["File", "Set Proxy"], Some("Cmd+Alt+P"), "{path, items?|item?}", has_targets, set_proxy),
|
||||
cmd!("file.setProxyNone", "None", ["File", "Set Proxy"], None, "{items?|item?}", has_proxy, set_proxy_none),
|
||||
cmd!("file.useProxy", "Use Proxy", [], None, "{items?|item?, on?}", has_proxy, use_proxy),
|
||||
cmd!(
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
|||
cmd!("shortcuts.export", "Export Keyboard Shortcuts", [], None, "{preset?, path?}", always, sc_export),
|
||||
cmd!("shortcuts.import", "Import Keyboard Shortcuts", [], None, "{path? | preset?: exported document, name?}", always, sc_import),
|
||||
query!("shortcuts.conflicts", "Keyboard Shortcut Conflicts", "{}", sc_conflicts),
|
||||
cmd!("file.openRecent", "Open Recent", [], None, "{index? | path?}", has_recent, open_recent),
|
||||
cmd!("file.openRecent", "Open Recent", [], Some("Cmd+Alt+Shift+P"), "{index? | path?}", has_recent, open_recent),
|
||||
cmd!("file.clearRecent", "Clear Recent Projects", ["File", "Open Recent"], None, "{}", has_recent, clear_recent),
|
||||
cmd!("file.autoSave", "Auto-Save Now", [], None, "{}", always, auto_save),
|
||||
query!("file.recoveryInfo", "Auto-Save Status", "{}", recovery_info),
|
||||
|
|
|
|||
|
|
@ -136,7 +136,15 @@ pub fn specs() -> Vec<CommandSpec> {
|
|||
res!("view.res.half", "Half", ["View", "Resolution"], Some("Cmd+Shift+J"), Half),
|
||||
res!("view.res.third", "Third", ["View", "Resolution"], None, Third),
|
||||
res!("view.res.quarter", "Quarter", ["View", "Resolution"], Some("Cmd+Alt+Shift+J"), Quarter),
|
||||
cmd!("view.res.custom", "Custom...", ["View", "Resolution"], None, "{factor?: 1..40 (render every n-th pixel), comp?}", has_comp, custom_resolution),
|
||||
cmd!(
|
||||
"view.res.custom",
|
||||
"Custom...",
|
||||
["View", "Resolution"],
|
||||
Some("Cmd+Alt+J"),
|
||||
"{factor?: 1..40 (render every n-th pixel), comp?}",
|
||||
has_comp,
|
||||
custom_resolution
|
||||
),
|
||||
// The Composition panel's Resolution popup (not in the View menu).
|
||||
res!("view.res.auto", "Resolution: Auto", [], None, Auto),
|
||||
cmd!("view.layout", "Switch View Layout", [], None, "{views: 1|2|4}", has_comp, view_layout),
|
||||
|
|
|
|||
|
|
@ -650,7 +650,7 @@ Edit
|
|||
All 3D Cache... | edit.purge {"what":"3d"}
|
||||
Undo | edit.purgeUndo
|
||||
Image Cache Memory | edit.purge {"what":"image"}
|
||||
Snapshot | edit.purge {"what":"snapshot"}
|
||||
Snapshot | edit.purge {"what":"snapshot"} | Cmd+Shift+F5
|
||||
---
|
||||
Edit Original... | edit.editOriginal
|
||||
---
|
||||
|
|
@ -775,8 +775,8 @@ Layer
|
|||
Draft | layer.quality {"quality":"draft"} | Cmd+Shift+U
|
||||
Wireframe | layer.quality {"quality":"wireframe"} | Cmd+Alt+Shift+U
|
||||
---
|
||||
Bilinear | layer.sampling {"sampling":"bilinear"}
|
||||
Bicubic | layer.sampling {"sampling":"bicubic"}
|
||||
Bilinear | layer.sampling {"sampling":"bilinear"} | Alt+B
|
||||
Bicubic | layer.sampling {"sampling":"bicubic"} | Alt+Shift+B
|
||||
Switches
|
||||
Hide Other Video | layer.hideOtherVideo
|
||||
Show All Video | layer.showAllVideo
|
||||
|
|
|
|||
|
|
@ -410,6 +410,26 @@ fn fast_previews_and_show_channel_modes_have_default_keys() {
|
|||
assert_eq!(s.state.viewer.channel.id(), "rgb");
|
||||
}
|
||||
|
||||
/// Default keys for commands and menu entries that had none.
|
||||
#[test]
|
||||
fn default_keys_for_commands_that_had_none() {
|
||||
let s = Session::default();
|
||||
let t = s.shortcuts();
|
||||
for (id, params, key) in [
|
||||
("edit.pasteReversedKeyframes", json!(null), "Cmd+Shift+V"),
|
||||
("edit.purge", json!({"what": "snapshot"}), "Cmd+Shift+F5"),
|
||||
("layer.sampling", json!({"sampling": "bilinear"}), "Alt+B"),
|
||||
("layer.sampling", json!({"sampling": "bicubic"}), "Alt+Shift+B"),
|
||||
("view.res.custom", json!(null), "Cmd+Alt+J"),
|
||||
("file.setProxy", json!(null), "Cmd+Alt+P"),
|
||||
("file.openRecent", json!(null), "Cmd+Alt+Shift+P"),
|
||||
("anim.applyRecentPreset", json!(null), "Cmd+Alt+Shift+F"),
|
||||
] {
|
||||
assert_eq!(t.shortcut_of(id, ¶ms), Some(key), "{id} {params}");
|
||||
}
|
||||
assert!(t.all_conflicts().is_empty(), "{:?}", t.all_conflicts());
|
||||
}
|
||||
|
||||
/// Cmd+Left / Cmd+Right Arrow step a frame like Page Up / Page Down (Shift: 10 frames).
|
||||
#[test]
|
||||
fn cmd_arrows_step_frames_like_page_keys() {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ pub const UI_COMMANDS: &[UiCommand] = &[
|
|||
uic!("viewer.nudge.down10", "Move Selected Layers Down 10 Pixels at Current Magnification", [], Some("Shift+ArrowDown")),
|
||||
uic!("viewer.nudge.left10", "Move Selected Layers Left 10 Pixels at Current Magnification", [], Some("Shift+ArrowLeft")),
|
||||
uic!("viewer.nudge.right10", "Move Selected Layers Right 10 Pixels at Current Magnification", [], Some("Shift+ArrowRight")),
|
||||
uic!("view.safeMargins", "Title/Action Safe", [], None),
|
||||
uic!("view.safeMargins", "Title/Action Safe", [], Some("'")),
|
||||
uic!("view.transparencyGrid", "Transparency Grid", [], None),
|
||||
uic!("view.fastPreviews", "Fast Previews", [], None),
|
||||
uic!("view.theme.toggle", "Next Appearance Mode", [], None),
|
||||
|
|
@ -52,7 +52,7 @@ pub const UI_COMMANDS: &[UiCommand] = &[
|
|||
uic!("view.theme.light", "Theme: Light", [], None),
|
||||
uic!("timeline.zoomIn", "Zoom In Time", [], Some("=")),
|
||||
uic!("timeline.zoomOut", "Zoom Out Time", [], Some("-")),
|
||||
uic!("timeline.zoomFit", "Zoom to Fit Comp", [], None),
|
||||
uic!("timeline.zoomFit", "Zoom to Fit Comp", [], Some("Shift+;")),
|
||||
uic!("timeline.zoomFrameToggle", "Zoom In to Frame Level / Out to the Whole Comp", [], Some(";")),
|
||||
uic!("timeline.graphEditor", "Graph Editor", [], Some("Shift+F3")),
|
||||
uic!("timeline.switchesModes", "Toggle Switches / Modes", [], Some("F4")),
|
||||
|
|
|
|||
Loading…
Reference in New Issue