Adds 'Move Tiles' tool for moving and duplicating tile selections#4311
Open
Syynth wants to merge 1 commit intomapeditor:masterfrom
Open
Adds 'Move Tiles' tool for moving and duplicating tile selections#4311Syynth wants to merge 1 commit intomapeditor:masterfrom
Syynth wants to merge 1 commit intomapeditor:masterfrom
Conversation
Adds a dedicated tool for moving tile selections to a new location. - Shortcut: V (standard move tool shortcut) - Drag to move selected tiles - Alt+drag to duplicate instead of move - Escape or right-click to cancel mid-drag - Undo restores both tiles and selection position The tool uses a floating selection visualization with marching ants animation during the drag operation. The move is committed as a single undo command when released. New files: - tilemovetool.h/cpp - Tool implementation - floatingtileselectionitem.h/cpp - Drag visualization - movetiles.h/cpp - Undo command
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.
While looking to see if there was any prior work on this, I saw #1647 and did my best to incorporate the feedback there.
The tool uses a floating selection visualization with a marching ants animation during the drag operation. The move is committed as a single command to the undo stack when released.
Screen.Recording.2026-01-10.at.12.10.03.PM.mov
Files added:
Files changed:
Personally I'd kind of like the move tool to be able to create/update the selection without switching to a different tool, but this felt most closely aligned with how the other tools already worked.
If you have any feedback about how it should work, please let me know and I'd be happy to make adjustments; this was just my first pass. If you'd prefer not to add it, I understand but this was to scratch my own itch first and foremost 😁