Re: Feature discussion: Search field and local search engine

2025-04-13 Thread Sébastien Gendre
Ihor Radchenko writes: > It may be something users want to choose (user option). It could be an option. I think a large portion of code made for one option could be done for the other option. So, I can start with the search on each page and then, in the future, add search on a dedicated page.

Re: Feature discussion: Search field and local search engine

2025-04-13 Thread Ihor Radchenko
Sébastien Gendre writes: > My main concerns with this third solution was more about: > > * What if we also add a search capability in Org-mode and not only in > HTML exported pages ? org-ql does it. So, there is already search capability in Org-mode. Moreover, org-agenda does it. And columnvie

Re: Feature discussion: Search field and local search engine

2025-04-13 Thread Sébastien Gendre
Yes, you are right. Maintaining a JS on org-mode could be a bad idea. My main concerns with this third solution was more about: * What if we also add a search capability in Org-mode and not only in HTML exported pages ? * Do we have a search on the whole site directly from each page, or on a

Re: Feature discussion: Search field and local search engine

2025-04-13 Thread Sébastien Gendre
Hello, Thank you for your replies and your time. So, I go with solution number 1: * A HTML search engine is defined with a function, in a similar way to what we have with export backend definition. * To enable the search engine in an Org publication to HTML pages, a user only have to set th

Re: Feature discussion: Search field and local search engine

2025-04-12 Thread Ihor Radchenko
Sébastien Gendre 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 t

Re: Feature discussion: Search field and local search engine

2025-04-12 Thread Ihor Radchenko
Sébastien Gendre writes: > # Solution 1 > > After looking at Pagefind, I was thinking of taking inspiration from > "org-export-define-backend". > > Creating a function named like "org-html-define-search-engine" and that > will have as parameters: > ... This looks reasonable and flexible. +1 >

Re: Feature discussion: Search field and local search engine

2025-04-05 Thread Ihor Radchenko
Hi, It has been a while since the last message in this thread. May I know if you need any help? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at

Re: Feature discussion: Search field and local search engine

2025-04-04 Thread Sébastien Gendre
A third solution would be to add a search feature to Org-mode, that could be used from Org-mode and exported in HTML. I think it could be done in 3 steps. # Step 1: Search feature in Org-mode only This step would add the feature of searching files and items in Org-mode files. This search coul

Re: Feature discussion: Search field and local search engine

2025-04-01 Thread Sébastien Gendre
About how to be independent of the search engine. I think of 2 solutions. # Solution 1 After looking at Pagefind, I was thinking of taking inspiration from "org-export-define-backend". Creating a function named like "org-html-define-search-engine" and that will have as parameters: - A search e

Re: Feature discussion: Search field and local search engine

2025-04-01 Thread Ihor Radchenko
Sébastien Gendre writes: > Ok, I have some free time for the next weeks. > > To summary, and to refresh my memory: > ... > > Did I miss something ? Everything looks right. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org devel

Re: Feature discussion: Search field and local search engine

2025-04-01 Thread Sébastien Gendre
Ok, I have some free time for the next weeks. To summary, and to refresh my memory: - I make a list of potential search engine - Found what they have in common - Design an API to define a new search engine on Org-mode side - Design an API to enable and choose the search engine in an org-publ

Re: Feature discussion: Search field and local search engine

2025-03-24 Thread Ihor Radchenko
Sébastien Gendre writes: > Sorry, I am very busy now, by a work for school, until the 1 April. > > I will have some free time for the rest of April before starting my last > work for school around May. There is actually no rush. Just making sure that the whole thing did not fell through the crac

Re: Feature discussion: Search field and local search engine

2025-03-24 Thread Sébastien Gendre
Sorry, I am very busy now, by a work for school, until the 1 April. I will have some free time for the rest of April before starting my last work for school around May. Ihor Radchenko writes: > Hi, > > It has been a while since the last message in this thread. > May I know if you need any help?

Re: Feature discussion: Search field and local search engine

2024-12-08 Thread Björn Bidar
Ihor Radchenko writes: > Sébastien Gendre writes: > >> If we use PageFind, isn't possible to not include it with org-mode but >> have an Elisp function that download it ? Like what Elpy do with its Python >> dependencies ? > > It may be possible - Emacs already downloads tree-sitter grammars, fo

Re: Feature discussion: Search field and local search engine

2024-12-08 Thread Ihor Radchenko
Sébastien Gendre writes: >>> - Can search with only frontend components (no backend needed) >> >> These are probably not necessary, unless it makes your life easier for >> the purposes of implementation. > > Do you think we need to also support search engines that use a backend > software ? > > I

Re: Feature discussion: Search field and local search engine

2024-12-07 Thread Sébastien Gendre
Ihor Radchenko writes: > Sébastien Gendre writes: >> - Can index content from command line >> >> - Can search with only frontend components (no backend needed) > > These are probably not necessary, unless it makes your life easier for > the purposes of implementation. Do you think we need to als

Re: Feature discussion: Search field and local search engine

2024-11-23 Thread Ihor Radchenko
Sébastien Gendre writes: > But I need to define the criteria of selection. > Here is my suggestion: > > - Libre Software > > - Exist for more than a few years > > - Still maintained > +1 > - Can index content from command line > > - Can search with only frontend components (no backend needed)

Re: Feature discussion: Search field and local search engine

2024-11-17 Thread Sébastien Gendre
Hello, I'm back, for a few days. I've started to list candidates for a search engine, compare their characteristics, etc. But I need to define the criteria of selection. Here is my suggestion: - Libre Software - Exist for more than a few years - Still maintained - Can index content from comma

Re: Feature discussion: Search field and local search engine

2024-10-24 Thread Ihor Radchenko
Sébastien Gendre writes: > For the platform-independence, I think it would depend on the tool used. > > PageFind precompiler release, on their Github, is available for x86_64 > GNU/Linux, Apple Darwin and Windows and aarch64 GNU/Linux and Apple > Darwin. > ... > But if we use a search indexer wri

Re: Feature discussion: Search field and local search engine

2024-10-23 Thread Ihor Radchenko
Sébastien Gendre writes: > If we use PageFind, isn't possible to not include it with org-mode but > have an Elisp function that download it ? Like what Elpy do with its Python > dependencies ? It may be possible - Emacs already downloads tree-sitter grammars, for example. But can you do it platf

Re: Feature discussion: Search field and local search engine

2024-10-23 Thread Sébastien Gendre
For the platform-independence, I think it would depend on the tool used. PageFind precompiler release, on their Github, is available for x86_64 GNU/Linux, Apple Darwin and Windows and aarch64 GNU/Linux and Apple Darwin. But if we use a search indexer written in interpreted language, as long as t

Re: Feature discussion: Search field and local search engine

2024-10-23 Thread Ihor Radchenko
Sébastien Gendre writes: > * And about the other features ? > > How do you want to discuss the other features ? > > One by one and only start to discuss the next one when the previous is > implemented ? > > Or do you prefer I create new threads for each of themes in the next > days ? If you can

Re: Feature discussion: Search field and local search engine

2024-10-22 Thread Sébastien Gendre
Here is some quote of the previous discussion, with my reply below. * Remarks #1, by Ihor Radchenko at Sat, 07 Sep 2024 11:53 Ihor Radchenko writes: > > Sébastien Gendre writes: > > I can search for another project. > > > > I don't know how many work it would be needed to develop a search mot