-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add search highlighting snippets #29
Comments
Might just be a documented pattern for how to configure this in YAML templates. |
I think I can do this as a cunning trick in select
path,
snippet(til_fts, -1, 'b4de2a49c8', '8c94a2ed4b', '...', 60) as snippet
from
til
join til_fts on til.rowid = til_fts.rowid
where
til_fts match escape_fts(:q)
and path = 'asgi_lifespan-test-httpx.md' The |
To do this I'll need the search term to be passed to the dogsheep-beta/dogsheep_beta/__init__.py Lines 164 to 171 in 4890ec8
|
Should I pass any other details to the |
I'm just going to add |
Using new feature from dogsheep/dogsheep-beta#29
Like on https://til.simonwillison.net/til/search?q=Snippet
The text was updated successfully, but these errors were encountered: