-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
typos when inserting templates lead to a new block named "/<part of the template name>" #10293
Description
Search first
- I searched and no similar issues were found
What Happened?
Sometimes, when inserting templates via /template, I end up with two new blocks: a block that says /ABCD (template name being ABCDEFG) and the actual inserted template one block below that (not indented).
Unfortunately, I cannot 100% reliably reproduce this bug, but its somewhat close to the routine described below.
It happens to me quite a lot when using templates in a hurry so there might be some other miss-click, accidental use of arrow keys
to change focus, etc. involved.
Didn't find a bug report like this, but admittedly it is a bit hard to search for.
I'll add information if I figure it out. Maybe someone experienced something similar? I'd say it happens to me 1 out of 10 times when using a template so it is a bit annoying.
Reproduce the Bug
It's not this, but something close. It definitely has to do with typos and fixing them.
- Type /template to bring up the corresponding little window
- type something that doesn't exist as a template, e.g. ABBCDEFG instead of ABCDEFG
- Hit backspace to delete everything up to the / (or maybe just until a template is suggested again, not 100% sure)
- Fix your mistake by typing the correct name of the template, e.g. ABC and hit enter to autocomplete
- You end up with a block saying something like /ABC (up until the point you typed) and the template inserted as the next block
Expected Behavior
Expected behavior would be the incomplete template name not being made into its own block
Screenshots
No response
Desktop or Mobile Platform Information
Desktop Linux, version 0.9.18
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)