We still search everything under the top-level. The notes directory currently has the following shape:
And then there's the search/ directory for persisting full-text search results.
ZHUYLZBXMWLEKK67P4KWY3TS6YMWD6MKSLG7VLI4UEH7BOQMMNRQC
--? print(date_dir..filename)
search_in_file(Display_settings.search_all_state.date..filename)
-- hack: to speed up search, only search files created/managed by Pensieve
-- I often have other stuff here that's a lot larger (email).
if filename:match('^%d%d%-%d%d%-%d%d$') then
--? print(date_dir..filename)
search_in_file(Display_settings.search_all_state.date..filename)
end