davidgranstrom / scnvim

Neovim frontend for SuperCollider.
GNU General Public License v3.0
208 stars 28 forks source link

[FR] Allow precompiling all help files #177

Closed madskjeldgaard closed 2 years ago

madskjeldgaard commented 2 years ago

Hello

One thing that I would love to be able to do is to fuzzy search the text of the help files on the system. Preferably using the compiled .txt files made by scnvim, but as it is right now, as far as I understand, they are compiled lazily when needed. If there was a lua function that would (re)compile all help files, using RipGrep we could easily search the contents of all the files instead of only the titles/classes as we do now in both fzf-sc and in the telescope plugin.

davidgranstrom commented 2 years ago

@madskjeldgaard I've implemented this in the linked PR, please try it out whenever you have the time!

:lua require'scnvim.help'.render_all()

The function accepts a callback as its first argument if you want to do something after conversion has been completed. One limitation is that only works with pandoc at the moment (with hardcoded arguments). This will change as soon as #153 is ready.