News for hackers. Stuff that matters.
Re:The endless quest for a great notes-taking tool by fabianholzer on Wednesday August 25, 2021 @05:39AM (#28299562)
A self-hosted TiddlyWiki instance (the nodejs-based version, not the single html file approach) might satisfy many of your requirements, albeit not the search preview. https://tiddlywiki.com/
Re:The endless quest for a great notes-taking tool by kixiQu on Wednesday August 25, 2021 @03:29PM (#28305842)
I wonder if you could hack that in with https://github.com/danielo515/TW5-contextPlugin ? I use it for this for backlinks.

ETA: https://tiddlywiki.com/static/Customising%2520search%2520res...

Yup, totally doable