javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.07k stars 70 forks source link

Autocomplete for callout types #249

Closed 0xdevalias closed 2 years ago

0xdevalias commented 2 years ago

(Note: I also created this as a feature request for Obsidian itself, but I figured if it doesn't get added to the core, it could be a nice addition to this plugin: https://forum.obsidian.md/t/autocomplete-for-callout-types/39865)

Use case or problem When using callouts it would be nice if the supported callout types were shown in an autocomplete dropdown list.

Proposed solution As I start typing the callout syntax (eg. > [!) an autocomplete dropdown would show up, allowing me to select one of the supported callout types (note, abstract, etc)

valentine195 commented 2 years ago

This feature has already been implemented in Admonitions. Is it not working for you?

you do have to type 1 character after the !

0xdevalias commented 2 years ago

Oh true! I totally missed that. Thanks for pointing it out, it works for me :)

Cito commented 1 year ago

The problem however is that you have to know one letter already, it cannot be used to show a list of all possible types. (The autocompletion only suggests types which include the letter you have typed.)

0xdevalias commented 1 year ago

it cannot be used to show a list of all possible types

If it did, that would definitely be ideal.

valentine195 commented 1 year ago

@0xdevalias @Cito I just implemented this

0xdevalias commented 1 year ago

@valentine195 Amazing, thanks! :)

Cito commented 1 year ago

@valentine195 Awesome, thank you! That was quick!