egui icon indicating copy to clipboard operation
egui copied to clipboard

Create an Undoer Example in the egui Demo App

Open zicklag opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I didn't know about the awesome undoer utility, and almost wrote my own before stumbling upon it by chance while looking for something else in the egui docs.

Describe the solution you'd like We could have a new demo window in the egui Demo App that just has a text box, and maybe an extra text-box or radio button, that allows you to undo by clicking a button or using a keyboard shortcut.

Describe alternatives you've considered Somehow making the utility more visible in the API docs might be a good idea in addition or alternatively to the demo window.

Additional context I often use the egui demo app as kind of an examples index / "feature list" so I think having the undoer featured in a demo would help increase its visibility, and I've found the feature very useful for my app. It made implementing undo painless, when it could have been quite some trouble.

zicklag avatar Jun 03 '22 22:06 zicklag

Good idea! Feel free to contribute a PR

emilk avatar Jun 10 '22 13:06 emilk

OK, cool, I'll do that. :+1:

zicklag avatar Jun 10 '22 20:06 zicklag