naturalcrit / homebrewery

Create authentic looking D&D homebrews using only markdown
https://homebrewery.naturalcrit.com
MIT License
1.06k stars 326 forks source link

Autocomplete - show-hint #490

Closed LeviRosol closed 6 years ago

LeviRosol commented 6 years ago

I'm attempting to add functionality to homebrewery that allows for autocomplete when generating links based on headers. For example, if you have

# Taco
## Taco 2

When you press [ you'll get a list of Taco and Taco 2 and when you select one, a link appears like so:

[Taco](#taco)

It looks like CodeMirrors supports the triggers I need, and I can get it to work as I want in a dummy project, however, I can't seem to get the add-on to work within Homebrewery. A quick summary of what I've done is:

What am I missing? I'm sure it's something obvious.

LeviRosol commented 6 years ago

I should have clarified that I'm attempting to get the show-hint addon to work, and possibly the anyword-hint on top of that. However, my intent is to write my own addon specific to markdown headers. My assumption is that would ride on top of the show-hint addon.