evenorog / undo

An undo-redo library.
https://docs.rs/undo
Apache License 2.0
49 stars 6 forks source link

Reference to the inner Action list #20

Closed imsamuka closed 1 year ago

imsamuka commented 1 year ago

Can the crate provide a reference (at least immutable) to the Action list inside Record, Timeline and History?

Without it, there's no way to, for example, display the history in a Gtk TreeView, as each leaf needs detailed typed information. As far as I know, there's no way to do it using the Display struct provided.

In my case, i need to inspect the history after adding things to it, and act accordingly. But currently I can't.

evenorog commented 1 year ago

Sounds good. I will add it in the next release.