Way to open help tag page knowing only tag name
Closed this issue · 4 comments
For third party sites and applications it might be useful to have an easy way to create a link to a help tag while knowing only its name. It might also power the gx mapping when applied in help files.
Currently it requires knowing the exact tag location in the runtime files, which requires an extra computation based on Neovim source code.
Example:
- Current: https://neovim.io/doc/user/pack.html#package-create
- Desired: something like https://neovim.io/doc/tags/package-create or https://neovim.io/doc/tags.js?tag=package-create
cc @justinmk
I've made a PoC for this at https://neovim-doc-browser.gpanders.workers.dev/. Just add /{tag} to the end of that URL, e.g. https://neovim-doc-browser.gpanders.workers.dev/help.
Source code is here https://codeberg.org/gpanders/neovim-doc-browser
@gpanders is that going to work on a static site? need something we can host on neovim.io
It could run on a subdomain of neovim.io (like doc.neovim.io or something).
Setting up tiny compute envs is "easy" (edit: but we already have a CloudFlare, could deploy as a "worker script"), but it's one more thing that will eventually break. Some sort of client-side js redirect should be fine for now.
Future ideas:
- generate individual
tag/foo.htmlfor eachfootag- add
<meta http-equiv="refresh" content="0; url=/new-url/">to each of those
- add
- deploy gpanders's script as a cloudflare worker