Skip to content

Add back segment-by-segment undo while drawing with the Pen tool #2152

@Keavon

Description

@Keavon

Good first issue: this is likely a medium-difficulty item suitable for savvy new contributors who have likely already done a few other PRs, but probably isn't best as a first PR or for those with limited programming experience


We used to be able to draw with the Pen tool, and as you kept drawing more segments, you could use CtrlZ to undo each individual segment one at a time. This functionality was lost during a refactor PR from @adamgerhant as part of the limitations imposed by that refactor. This functionality will now need to be reimplemented within the current state of the code, and can be referenced in the build link below for its prior functionality.

It was removed between these two builds, which would be a helpful date range if it becomes necessary to bisect which commit this regression was introduced in.

  • 2024-08-27: Pen tool undo worked as desired in this production deploy: https://110d2ce1.graphite-editor.pages.dev/
  • 2024-09-15: The regression happened no later than this date, since that's when I wrote a comment about its removal

Here's a video showing the prior behavior from that build link when actively drawing segments with the Pen tool:

capture_13_.mp4

The current behavior in master just ignores any attempts to undo while actively drawing segments.

Metadata

Metadata

Assignees

Labels

Good First IssueGood for newcomersPaper CutA small UX annoyance we should strive to improve

Type

Projects

Status

Completed This Milestone

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions