tth05 / obsidian-completr

Auto-completion plugin for the obsidian editor.
MIT License
291 stars 18 forks source link

Completion for hierarchical tags #68

Open Uroc327 opened 1 year ago

Uroc327 commented 1 year ago

I would like to have incremental completion and triggering for hierarchical tags.

In my frontmatter, I have a topic field with hierarchical values. A list of all possible topics would look something like

topics:
- afoo
- afoo/b
- afoo/b/d
- afoo/c
- afoo/c/d
- b
- e

where the individual names (like a) may contain spaces or &.

When adding a topic, I would like to see a completion workflow like navigating through a filesystem using cd and bash completion. For an empty field - with possible suggestions afoo, bbar, efoo, I want to write a<Enter> to result in - afoo or a/ to result in - afoo/.

Also, completion of partial values doesn't seem to work right now. If I have topics A & B, A & B/C, A & B/D, then starting with A & B/ does not provide any suggestion at all.