Repository navigation
Repeat Last Command in the command palette, with a key you can change (#7077) - #7353
Merged
bherbruck merged 4 commits intoOct 27, 2026
Merged
Conversation
semmelrinde
force-pushed
the
feat/repeat-last-command
branch
from
October 27, 2026 07:43
f00bd25 to
1e43498
Compare
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
added a commit
to semmelrinde/solidcraft
that referenced
this pull request
Oct 27, 2026
semmelrinde
marked this pull request as ready for review
October 27, 2026 07:45
bherbruck
enabled auto-merge
October 27, 2026 12:37
…gency-labs#7077) Shift+R already started the last tool or dialog again (tangency-labs#3045), but it was a key the app kept for itself: command search could not find it and Keyboard Shortcuts could not change it. It is now the command edit.repeat, with Shift+R as its default key. A call through the engine is refused, because only the app has a tool to start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ar and he are complete catalogs on main now (tangency-labs#3458): every new message needs them. The pending-messages test compares right-to-left messages in display order once tangency-labs#7532 lands (tangency-labs#7527). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vietnamese became a complete catalog on main (tangency-labs#5823), so every new English message needs it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
auto-merge was automatically disabled
October 27, 2026 14:03
Head branch was pushed to by a user without write access
semmelrinde
force-pushed
the
feat/repeat-last-command
branch
from
October 27, 2026 14:03
1e43498 to
cf2ba57
Compare
bherbruck
added this pull request to the merge queue
Oct 27, 2026
Contributor
Author
|
@bherbruck Rebased onto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7077
Change
SolidCraft can already start the last tool or dialog again: Shift+R, or Repeat in the canvas and radial menus (#3045). It starts the tool with its defaults, the way a toolbar click does. It does not replay the last values. But Shift+R was a key the app kept for itself (
keymap::RESERVED), handled intoolbar::shortcuts, and not a command. So command search could not find it, Keyboard Shortcuts did not list it, and nobody could give it another key.Now it is a command, as "Everything is a command" asks:
edit.repeat"Repeat Last Command" incrates/engine/src/cmd/edit.rs. Its default key is Shift+R, which is the same key as before. It has no toolbar place, so its key works everywhere, in a sketch and in the model. It has a contract and an output type (crates/engine/src/schema/edit.rs). A call throughengine.executeis refused with a clear message and changes nothing. Only the app has a tool to start, and programmatic calls never open dialogs.SolveApp::start(instart_with_variant_memory) catchesedit.repeatand callsrepeat_last. Repeat itself is never recorded as the last command. With nothing started yet, the status line says "Nothing to repeat yet".RESERVED, and the hard-codedKey::Rbranch lefttoolbar::shortcuts. The key now goes throughkeymap::presslike every other command key. So it follows the same rules: nothing happens while a text field takes the keyboard, while a popup is open, or while a Report a bug draft is open. While a feature dialog is open, it starts the last tool the way other tool keys do.keymap::display_for), not a fixed "Shift+R".assets/locales/pending/repeat-last-command.json(en, ar, de, he, ja, ko, zh).arandheare complete catalogs onmainnow (docs: a new label needs Arabic and Hebrew too (#3457) #3458); with right-to-left pending strings,pending_messages_are_in_the_catalogsfails on currentmainuntil i18n test: compare pending right-to-left messages in display order (#7527) #7532 fixes it (i18n test: pending Arabic and Hebrew messages fail pending_messages_are_in_the_catalogs #7527).The issue asks for the space bar. I didn't use it. That key is another product's binding, and Shift+R has been SolidCraft's Repeat key since #3045. Anyone who wants a different key can now set it in Keyboard Shortcuts.
Changes a default: no
Validation
cmd::edit::tests::repeat_is_refused_outside_the_app_and_changes_nothing(engine):edit.repeatis registered with Shift+R, no tab and no undo step. Through the engine it is refused, and the design and undo history stay as they were.schema::edit::tests::schemas_and_the_key_check_agree(engine): the contract takes no keys and refuses unknown ones.keymap::tests::repeat_last_command_is_a_command_with_a_key_that_can_change(UI), which checks these cases:keymap::tests::shift_r_repeats_the_last_tool(Latest command repeat #3045) still passes. Only its last assert changed: Shift+R is now a command's key, not a reserved one.edit.repeat". The UI test fails at its first assert, because Repeat has no command key.cargo test -p solidcraft-engine --libandcargo test -p solidcraft-ui-egui --lib: engine 2502 passed, UI 2705 passed. The only failures (3 in the engine, 13 in the UI) also fail onmainon the machine used:robustness_goldens::seed_36andseed_71, the prism-local ring cut, and UI theme, clipboard and layout tests that have nothing to do with keys or commands.cargo fmt,cargo clippy -p solidcraft-engine -p solidcraft-ui-egui --all-targets -- -D warningsandcargo xtask lists: clean.Screenshots of the behavior (when observable)
Command search, query "repeat". Before: no Repeat entry.

After: "Repeat Last Command" (

edit.repeat) with its key, Shift+R.Preferences › Keyboard Shortcuts, filtered by "repeat". Before: "No matching commands".

After: Repeat Last Command with Shift+R, which you can change, clear or reset.

Box was started and cancelled, then Shift+R was pressed: the Box dialog opens again with its default sizes.

Integration status
mainat 514b0c8 and tested again there: enginecmd::edit/schema::edittests pass;cargo test -p solidcraft-ui-egui --libfails only the tests that fail onmainon this Mac, pluspending_messages_are_in_the_catalogs(i18n test: pending Arabic and Hebrew messages fail pending_messages_are_in_the_catalogs #7527, fixed by i18n test: compare pending right-to-left messages in display order (#7527) #7532); clippy-D warningsandcargo xtask listsclean.keymap.rs, and Command search: show a command's place in the ribbon, also inside section menus (#7287) #7322 and Quality of life: revolve axes, 3D sketch moves, parts library, sketch/model keys #4432 changetoolbar.rs. None of them touches the Repeat code or adds a default Shift+R, so I expect no conflicts beyond nearby lines.🤖 Generated with Claude Code