Skip to content

Add Ctrl+Z undo with configurable history length#90

Open
chezhia wants to merge 3 commits into
coendevente:mainfrom
chezhia:ctrlZ
Open

Add Ctrl+Z undo with configurable history length#90
chezhia wants to merge 3 commits into
coendevente:mainfrom
chezhia:ctrlZ

Conversation

@chezhia
Copy link
Copy Markdown

@chezhia chezhia commented Apr 24, 2026

This PR adds prompt-level Ctrl+Z undo support to the Slicer plugin, with a configurable history length so users can tune undo depth based on available memory and the task at hand.

Summary:

  • add Ctrl+Z undo support for prompt-driven edits
  • add a Configuration-tab setting for the prompt history length
  • preserve undo state when clearing a segment
  • harden empty-segment labelmap handling so prompt editing continues to work reliably
  • add root extension metadata so the repo opens cleanly in Slicer's Extension Wizard

The primary feature here is configurable undo history. The remaining changes are supporting bug fixes needed to make that workflow reliable.

Closes #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to ctrl-z after input

1 participant