Sometimes it is funny to use this template for simple questions
What I’m trying to do
When using DataViewJS, I often want to jump into a specific folder. Usually, this is a subfolder or folder in the same “root”. To get the current folder, I use:
dv.current().file.folder
And then, I split & slice to get the folder up:
currentFolder.split('/').slice(0, -1).join('/');
I wonder if there is an easier way to move from folder up? Is there some DataViewJS code block that I can use, and I don’t know about it?
Things I have tried
Once, I tried pineapple pizza … and I didn’t like it
Cheers, Marko