Add step ranges #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rahb/add-step-ranges"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Had a quick look at this on the train, if it looks like it's going in the right direction I can add proper tests / doc strings (plus revisit any logic errors) but thought it better to throw this up.
If this looks ok then instead of
prevMapinside the history plugin, there can beprevRangeswhich can be mapped for each appended transaction and then tested on new input withtouches.I don't think this is a big enough use case to justify having another class exported from prosemirror-transform. I've committed a simpler solution to prosemirror-history, could you take a look whether it solves your use case?
That definitely makes sense just more terse, I’d actually thought to do something relatively similar to this but misunderstood you saying it might be worth making a smaller, easier to map version of a step - hence the class. Looks great!
Great. Did you test my change, to make sure we were actually talking about the same problem? If so, I'll release it.
I’m actually away this week so I don’t have my laptop. I read the intent of
the spec you wrote but I’m happy to test it when I’m back. The test looks
like it covers my exact case though.
On Mon, 8 Oct 2018 at 13:28, Marijn Haverbeke notifications@github.com
wrote:
All right, going ahead and releasing this—you can open an issue if you run into problems
This actually fixes quite a few things for us, thanks!
Pull request closed