I feel pretty weird about digging into the state of the buffer like this. What exactly are you after, the inserted text? Is that something we could provide an API for you to access in `TextBuffer` itself? What would the ideal API look like to you?