feature: replace InsertCharPre with TextChangedI#4
feature: replace InsertCharPre with TextChangedI#4gabeklavans wants to merge 2 commits intoYannickFricke:masterfrom
Conversation
to capture all text changes in insert mode, including backspace
|
@gabeklavans Thanks for the PR! I remember that there was one thing why I couldn't use The oldest references I can find in the NVIM repo regarding |
Yeah I figured you'd seen this as an option.
Briefly, but yes. I did a bunch of typing and text manipulation while watching the XP counter from the getxp function, and it seemed to be accurate. I can test it on my local in real-world use for a bit, if you'd like.
I also observed this after making the PR lol |
That sounds good - I will do the same over the next few days. Need to re-setup my NVIM :D |
|
@YannickFricke How has testing been going for you? I've been using my fork and haven't noticed any anomalies in my stats. It's hard to fully claim it's accurate because I'm not usually watching my XP counter in the bottom right but when I do glance at it, it appears to act normally. |
to capture all text changes in insert mode, including backspace
https://neovim.io/doc/user/autocmd.html#TextChangedI
I'm not sure how to check when this event was added; it may change the minimum version of NeoVim required.