Expose Page( Picker)'s hidden attr: lastOpened?

Recently, by integrating the updated version of Add one-off attr: LastVisit to Pages with the updated version of ABC - Adaptive Bread Crumb, managed to implement persistent storage of lastVisit and, based on that, an automatic “site visit counter”, which now appears in the breadcrumb as :eyes:${visitTimes}.

However, I realized that Page Picker already possesses a similar capability through its lastOpened–based sorting by default. Nevertheless, in the index, pages lack the lastOpened:${date} attribute, making it inaccessible to users.

I find this attribute quite useful — perhaps @zef could help expose it?

That way, it would operate at the index/memory level, rather than relying on the current .md-level “non-query table”, leading to much faster queries on large database and enabling a richer set of query combinations.

emm, found lastOpened attr in editor.getRecentlyOpenedPages() :upside_down_face:

then one can simply query to have:

–__—|||||||||

I feared somebody may find out about this at some point and I’d have to figure out how to expose it. Let me think how to do it…

1 Like