Sébastien Gendre <s...@k-7.ch> writes: > A third solution would be to add a search feature to Org-mode, that > could be used from Org-mode and exported in HTML. > ... > # Step 1: Search feature in Org-mode only > ... > # Step 2: Add HTML export of the search feature > ... > # Step 3: An option in org-publish to auto-generate a search page
> The search feature could be entirely new, or based on org-ql. It would > be nice to be based on org-ql, as I could help to make it upstream. It > would require to add files as target for search. > > For the search in the web page, I could write the JS script, re-use an > existing library or not. All the HTML part could be customized with > parameters specific to the HTML exporter. > > It's a lot of work and more ambitious than solution 1 or 2 in my > previous e-mail. But it would add the search feature not only in > HTML export but in Org-mode too. And it could help to make org-ql > upstream. I am skeptical about maintaining a JS script in the core. We had a very bad experience with infojs (which still lacks maintenance). I'd rather go for extendable infrastructure than implementing something from scratch. For org-ql, there are other reasons why org-ql is not upstreamed. They have nothing to do with the lack of motivation. They have something to do with the lack of free time on Adam's side. See https://github.com/alphapapa/org-ql/issues/409 and https://github.com/alphapapa/ts.el/issues/29 -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>