How to pass the name of the current note to a javascript function

I need to pass the name of the current note from which the function is called to my obsidian js function, how can I do this ?
I call the function in obsidian like this

```dataviewjs
await dv.view(“Scripts”, {note_name: “”});
`` `

what to write in the value for the note_name parameter ?

If by note name you mean the name of the file:
dv.current().file.name

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.