I have a plugin that appends transactions closely related to the content e.g. marking some text conditionally based on what was entered.
In this case, I want to combine that transaction with the one being appended in the history, such that when the user does an undo, the mark is removed and the text. Right now there’s no way I can tell the history plugin that I want to merge these two and it leads to janky undo behavior.
One possible approach is to allow a transaction to have a flag that makes it automatically pass the isAdjanceToLastStep function (https://github.com/ProseMirror/prosemirror-history/blob/e9e5caf70506f742258d46dfb0b86ac4c1a7721d/src/history.js#L283).