-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞 Strange Behavior of Callout Type Autocompletion #339
Comments
I unfortunately can't recreate this at all. I will keep investigating. |
Hello!👋 We are a team of university students doing an open source contribution practice. |
@IsuminI feel free :) |
This still an issue I am having as well. It looks like #355 fixes the issue, and I would love to see that merged! |
@valentine195 forgot to post this earlier, but @Tw1ZZLER and I found out that it happens only if you don't put a space between the |
Thanks for looking into this. Does the native callout require the space? If not then this is a bug that it triggers and renders without it. Otherwise I'll need to support the lack of space properly. |
Check for existing bug reports before submitting.
Expected Behavior
I type
>[!
and a dropdown list of admonition types appears. I can type more characters to search/narrow down the list of types. When I press Enter (or alternatively Tab, doesn't matter to me), the currently selected one is autocompleted and my cursor is placed at the end.Current behaviour
I type
>[!
and a dropdown list of admonition types appears. I can type more characters to search as desired, but the first character I type is always kept, and then the autocompleted type is concatenated. For example, if I type>[!n
and then select thenote
type, the result is>[!nnote]
(with my cursor one space after the bracket - that part is fine).Furthermore, in this case, pressing
Enter
(or left-clicking) to confirm the autocompletion doesn't work in a clean vault for some reason. That is, I can't actually autocomplete.If I only type
>[!
with no additional characters, then select a type, a newline is inserted. Like before, in a clean vault, pressingEnter
or clicking to confirm doesn't do anything.If I type a space
>[!
, then select a type, the selection menu remains open, which can cause "chaining" of the part of the admonition declaration after the part already typed (ex.note]
):...ad nauseum
Unlike the previous two cases, pressing
Enter
to confirm the autocompletion works in a clean vault, exhibiting the same behavior described here.Reproduction
>[!
followed by: 1. some other character that is part of a valid admonition type, 2. nothing, or 3. a space.Enter
or clicking on it.Which Operating Systems are you using?
Obsidian Version Check
v1.5.12 and v1.4.16
Plugin Version
10.2.0
Confirmation
Possible solution
No response
The text was updated successfully, but these errors were encountered: