September 16, 2022, 7:36pm
I have tried the “Recent Files List” plugin to see a list of recent Files
Just wondering if an inline code exists to get list of recent Files on by “Home Page”
-- List of recently created Files
What I’m trying to do
List of most recent Files to appear a in Document “Home Page”
Maybe with DataView (which I don’t use). I don’t think it can be done without a community plugin.
Quick Switcher shows a list of recent files before you type anything in it. It’s not embedded in a file, but I use it because it’s easy and built-in.
September 16, 2022, 11:15pm
Thank you for looking at it
The code is for Dataview, wondering if cud suggest code for Recent Files
September 16, 2022, 11:37pm
Well, maybe you don’t want to see ALL the files in your vault, only a top 10:
`$=dv.list(dv.pages().sort(p => p.file.mtime, 'desc').file.link.limit(10))`
September 17, 2022, 7:30am
Thank you mnvwvnm, this code gets recently modified files, I was looking for recently opened files
September 17, 2022, 11:31pm
Info about open files isn’t an implicit metadata. Per se dataview can’t access to that information.
I think you need to search some data exposed by Obsidian API.
lastOpenFiles which cache the last 10 open files.
So, try this:
September 18, 2022, 11:07am
Thank you mnvwvnm →this works perfectly, thank you
September 25, 2022, 11:07am
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.