Repository navigation
Add Edit > Clear strokes (1.7.7) - #191
Open
marcosqlbi wants to merge 1 commit into
Open
marcosqlbi wants to merge 1 commit into
marcosqlbi wants to merge 1 commit into
Conversation
The Edit strip gets a Clear strokes command that removes every ink stroke on the board in one undoable step, including strokes linked to a container. Ctrl+Shift+A followed by Delete already did this, but only from the keyboard, so a pen or touch user had no way to reach it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Removing every stroke from a board, for example to export the underlying pictures and slides without the ink, took Ctrl+Shift+A and then Delete. That works only from the keyboard, so someone using only a pen or touch had no way to reach it, and nothing in the strips showed that it was possible.
Edit > Clear strokes sits after Paste in the Edit strip, and the letter S runs it while the strip is open. It removes every
InkStrokeObject, including strokes linked to a container, through the sameDeleteCommandForpath that Delete uses. That path keeps connectors attached and makes the whole removal one step of the history, so a single Undo restores everything. The rest of the selection stays selected. The button is disabled when the board has no strokes, and the command does nothing while a text, label, or shape edit is open, as Duplicate does.This adds no export option. Clear strokes followed by Undo covers an export without ink, and the command is useful on its own.
Documented in the README command table, one sentence on the Eraser in the guide, the Edit letters on the shortcuts page, and the 1.7.7 notes.
The build is clean and both smoke-test harnesses pass. I haven't tried the command in the running application.
🤖 Generated with Claude Code