Closed gbwellman closed 1 year ago
I can reproduce the problem. Yes, the behavior is extremely broken in Live Preview. I'll look into it. Best I can say is to abstain from using snippets with checkboxes for now.
EDIT: SPECIFICALLY, do not trigger snippet on Enter/Space while using checkboxes. That's the extremely broken behavior. The bug you've pointed out above is just the broken behavior, which I am looking into.
EDIT 2: After looking into this issue and some of the other open ones, I've realized that this brittle "text-manipulation-only" design is simply not going to work. If I want this plugin to work properly as expected I'm going to have to actually rewrite it into an editor extension. That may take some time.
EDIT 3: Nevermind, fix was more plain than I thought. Can't wait to see what other bugs will sprout from the woodworks though.
2e1764a3bf486929c97f6a7a24a9cab4f0055de4 should fix this. Reopen and let me know if you have a problem.
Thank you for using the plugin!
First up, I'm loving this plugin!
However, I've been noticing that when this plugin is enabled, pressing space/return after a check box eg. ' - [ ] TodoItem' ends up selecting all the text up to the indent. As below:
Perhaps something is conflicting in 'live preview' editing mode since it works perfectly in 'source mode'?
Is anyone else having this problem?