Non-undoable input rule

Is there a way to avoid the backspace-to-undo behaviour for input rules? For a specific rule I mean, not in general.

I thought tr.setMeta('addToHistory', false) might do the trick but it looks like the code in question (undoInputRule) doesn’t check for that.

Perhaps it should? Would be willing to submit a PR if that sounds like a good idea.

Cancelling input rules is implemented entirely separate from the undo history, but I suppose it wouldn’t be unreasonable to overload the addToHistory meta property to also have this effect. I’d be interested in such a PR.

Hi :wave: , any news?

No, but this is definitely still on my to-do list. Just got pushed down by a few million other things, you know how it is : )

@tslocke any update on this? I know all to well how it is though.