Replies: 3 comments
-
I just realized that DQL has a |
Beta Was this translation helpful? Give feedback.
-
Aaaand I just ran into https://github.com/saml-dev/obsidian-custom-js, which should address another part of my question. |
Beta Was this translation helpful? Give feedback.
-
In its most basic variant you could use Not sure if this as such then qualifies for a dedicated function, since there exist a good workaround. However, whenever when/if I get around to implementing user functions it would be a nice candidate for such a function. |
Beta Was this translation helpful? Give feedback.
-
In my system, I prefer to keep my notes named without spaces, and they also begin with a Zettelkasten-style timestamp. So they all look something like
20250223164041-Title-goes-here.md
.As a result, the links Dataview generates are all rather ugly.
My current workaround is that I define an inline
title
property at the start of each note, like this:And then if I drop down to JS queries, I can create nice-looking links:
But this means I can't use DQL at all if I want nicer nice-looking links.
It would be nice if I could configure Dataview with a field name to look for link display names, and fall back to the original behavior if it's not present.
While I'm here...
This also got me wondering if there's a way to save common helper functions available to Dataviews? That would certainly make my workaround a little easier.
And much more tangentially, I had wondered how hard it would be for Dataview to make section headings available on page objects and/or in queries. The inline attribute isn't too bad, but the first thing I looked for before changing my templates to that was to see if Dataview could just grab the first section header as-is.
Anyways, just wanted to throw that out there, and also open to any suggestions on how I might improve my current approach. Dataview has been a real game-changer for my note-taking overall!
Beta Was this translation helpful? Give feedback.
All reactions