Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The One True Search™ #1204

Draft
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

SIGSTACKFAULT
Copy link
Contributor

@SIGSTACKFAULT SIGSTACKFAULT commented May 27, 2024

Just barely works!

2024-05-26.21-56-04.mp4

in hindsight i have no clue why i left the inspector open.

TODO:

  • assimilate assets search
  • assimilate examples search
  • add keyboard shortcut
  • show preview snippet in results
  • prioritize the section of the site that you're currently in
  • show something in the empty search dialog
  • think of some other tips
  • make it look good in the mobile menu
    • minor rework of mobile menu styles; now uses a vertical flexbox.
  • add close button

I will accept MRs on the SIGSTACKFAULT:one-true-search branch.

@alice-i-cecile alice-i-cecile added S-Waiting-On-Author C-Feature A new feature, making something new possible C-Webdev labels May 27, 2024
@SIGSTACKFAULT
Copy link
Contributor Author

SIGSTACKFAULT commented May 27, 2024

based on absolutely nothing i decided to put the mobile menu search button above the switch
image

@SIGSTACKFAULT
Copy link
Contributor Author

waiting on zola#2382

@MyZeD
Copy link
Contributor

MyZeD commented Oct 8, 2024

What do you think about a Javascript search in the client, e.g. https://lunrjs.com/ or http://elasticlunr.com/.

In Zola it shouldn't be difficult to pre-generate a JSON and load it as soon as the cursor is on the search input.
You can do the same with the Javascript search library.

This means that this JSON would not always be loaded in the background, as you usually don't need it unless someone wants to use the search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Feature A new feature, making something new possible C-Webdev D-Complex S-Waiting-On-Author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants