Skip to content

Merge auto-render ops with the op just before it#856

Open
obsgolem wants to merge 1 commit into
mayocream:mainfrom
obsgolem:fix-double-undo
Open

Merge auto-render ops with the op just before it#856
obsgolem wants to merge 1 commit into
mayocream:mainfrom
obsgolem:fix-double-undo

Conversation

@obsgolem

@obsgolem obsgolem commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

This ensures that auto-render is considered as part of a batch edit, thus preventing situations where ctrl-z appears to have no effect.

Note that I don't update the record on-disk, so when reloading it will be treated as a separate entry. Let me know if you want me to try to figure out a way to resolve this as part of the MR.

Fixes: #852

No AI was used in this MR.

This ensures that auto-render is considered as part of a batch edit,
thus preventing situations where ctrl-z appears to have no effect.

Fixes: mayocream#852
@mayocream

Copy link
Copy Markdown
Owner

This would work, but I wonder if we can "batch" auto-render with the previous op. 🤔

@obsgolem

Copy link
Copy Markdown
Contributor Author

This would work, but I wonder if we can "batch" auto-render with the previous op. 🤔

The problem is the debouncing. The previous op needs to apply before the ui can update, so we can't afford to wait a debounce cycle. Thus my idea to merge it later and pretend like it was a batch in the first place.

@liksunrice

Copy link
Copy Markdown
Collaborator

I think #801 fixed it via batching with previous op

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple undo actions required to undo some operations

3 participants