Repository navigation
Artboards: Duplicate Artboards, Copy and Cut take every selected artboard - #2567
Merged
bflatastic merged 1 commit intoOct 17, 2026
Conversation
4 tasks done
…oard With several artboards selected, the Artboards panel menu's Duplicate Artboards copied only the active one, and Copy and Cut with the Artboard tool took only the tool's active artboard. artboard.duplicate, artboard.copy and artboard.cut now take `indices`, and without `index` or `indices` they act on the artboards the Artboard tool has selected. Duplicate Artboards passes the selected artboards and selects the copies. Duplicate and Cut are one undo step each, and Paste adds every copied artboard back, with its art, in one undo step. The copies keep their places relative to each other, together right of the last artboard. A cut fails when it names every artboard. Docs: docs/mcp.md, docs/target-app-parity.md.
bflatastic
force-pushed
the
feat/artboards-duplicate-copy-cut-selected
branch
from
October 17, 2026 07:37
63f40c2 to
cdb0bbe
Compare
Member
|
Thanks @dotCooCoo, merged. We merged it with #2566 (merged earlier today): the copy commands use your |
Merged
4 tasks done
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.
What and why
On
main, select two artboards with the Artboard tool (Shift-click) and choose Duplicate Artboards in the Artboardspanel menu: only the active artboard is copied. Copy and Cut with the Artboard tool also take only the active artboard,
so Paste brings back one. The public Use the artboard context menu
and Cut, copy, and paste artboards
pages describe these commands acting on the selected artboards.
artboard.duplicate,artboard.copyandartboard.cutnow takeindices. Withoutindexorindicesthey act onthe artboards the Artboard tool has selected, so Edit › Copy and Cut take them all with the art on each. Duplicate and
Cut are one undo step each, and Paste adds every copied artboard back in one undo step. The copies keep their places
relative to each other, together right of the last artboard. The panel menu's Duplicate Artboards passes the selected
artboards and selects the copies.
How it was tested
tests_panelcmds::duplicate_artboards_copies_every_selected_artboard_in_one_step: with two of three artboardsselected,
artboard.duplicatewithindicesand with no params copies both with their art in one undo step.tests_panelcmds::artboard_tool_copy_and_paste_bring_every_selected_artboard: Copy then Paste adds both artboardswith their art in one undo step, and the tool selects them; Paste in Place puts them where they were.
tests_panelcmds::artboard_tool_cut_removes_every_selected_artboard: Cut removes both and their art in one undostep, and fails with every artboard selected.
panels::artboards::tests::the_panel_menus_duplicate_artboards_copies_every_selected_artboard: the menu itemcopies both artboards in one undo step and selects the copies.
With the commands acting on one artboard only, as on
main, and the menu item callingduplicateas onmain, eachof the four tests fails at its first check.
On Windows 11 (x86-64) with rustc 1.99.0, on top of
mainat 8bc6532:CRAFT_FONTS_DIR=<craft-fonts checkout> cargo xtask cipasses its 9 steps: 7,368 tests passed, 0 failed, 11 ignored.git merge-treereports no conflicts withmainat 8bc6532. The branch conflicts with #2556, which adds aduplicate_pickedat the same place (keep this branch's; the task bar then calls it), with #2532 in the cut (runensure_unlockedon every index), with #2566 (keep this branch'sboards_and_art, #2566'sartboard_indexand testwith
clipboard.artboards, and #2566's lastdocs/mcp.mdsentence), and with #2559, #1838 and #1295.Checklist
cargo xtask cipasses (fmt, clippy, tests, assets, brands, layers, wasm).unwrap(),expect(),panic!,unreachable!,todo!orunimplemented!outside tests, and no unchecked indexing on data from files, parameters ormessages. Errors are returned as
Resultand shown to the user(why and how).
ASSETS.md.