question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow use of note alias instead of `file.name`

See original GitHub issue

I personally use a system of note naming which results in long note names that I don’t always want to show in dataview previews.

Would it be possible show the results of list from "" as the notes’ alias instead of just file.name?

This is tricky if there are multiple aliases for a single note. But I think defaulting to the first alias would suffice. The ordering of aliases in a yaml list doesn’t affect anything else, I think, so the ordering would only serve this function for dataview.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
blacksmithgucommented, Aug 22, 2021

Use the link function:

TABLE WITHOUT ID link(file.link, default(file.aliases[0], file.name)) AS "File", ...
5reactions
SkepticMysticcommented, Mar 30, 2021

Yes, alias yaml field.

Good point! Ideally though, it would be a link. And it would be in the first column of a table, instead of file.link, alias like it is now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Defining and Using Aliases
To allow the reuse of logical file names when validating file names, and to make validation more flexible, you can define aliases for...
Read more >
Naming Files, Paths, and Namespaces - Win32 apps
This allows you to access those devices directly, bypassing the file system. This works because these device names are created by the system...
Read more >
Aliases for note names - Feature archive - Obsidian Forum
Alias for backlink keywords. Use H1 or front-matter title instead of or in addition to filename as display name. [duplicate] Aliases for note...
Read more >
Create and remove aliases on Mac - Apple Support
Select the item, then choose File > Make Alias. You can create as many aliases for an item as you want, then drag...
Read more >
Use filename as argument in bash alias, with default if it doesn ...
Yes, it's possible; no, this question isn't narrow and specific enough to let us tell you how. · I just need a working...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found