List of Starred Notes Using Inline JS

Things I have tried

What I’m trying to do

Hi, I am trying to list my starred notes from my vault using dataview inline js. Unfortunately, I am not able to do it as my js knowledge is limited. Hope to get some help.

Using DataView as an example of what I am trying to achieve. Code below:

Table
	file.starred as "Star"
where file.starred=true

I am trying to use inline js to display the same result. I tried the code below but result is not correct as it listed all notes. I am not able to filter just the starred=true notes only.

dv.list(dv.pages(’’).file.starred)

Have you tried normal Dataview search:

List
Where file.starred

Hello,

Try doing this:

`$= dv.list(dv.pages(’’).where(s => s.file.starred==true).file.starred)`
1 Like

I think you want to end with ‘file.name’ and not ‘file.starred’

2 Likes

Certain.

1 Like

Thanks. It works :grinning:

1 Like