hoelzro / tw-full-text-search

Full text search plugin for TiddlyWiki powered by lunr.js
https://hoelz.ro/files/fts.html
Other
25 stars 4 forks source link

Make sure we're not overdoing work when tiddlers are being edited #15

Closed hoelzro closed 6 years ago

hoelzro commented 6 years ago

This event handler, I believe, fires upon every tiddler change:

https://github.com/hoelzro/tw-full-text-search/blob/3a442d5d38b4a8c44f823f64e73433b316a6fd24/hooks.ts#L18

This means for tiddlers like the text of the tiddler currently being edited too, I think - make sure we're not bogging the wiki down through this event handler.