-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backlinks Function #2574
Comments
Thanks for the suggestion. I understand what you wish to do, but I would also like to understand why. Could you please say what the benefit of this is, to help in prioritising? Also, could you give an example of what that regular expression does? Thank you. |
Closing as no reply... |
I would like the same feature @claremacrae! For me at least, the reason is to reduce the amount of space the backlink takes up in the query result, but still being able to easily see which note the task is located in. My use case is admittedly very specific as I use the name of the file to create a hierarchy. This naming convention can sometimes lead to long file names, so having the header in the backlink makes it take up too much space for my liking. Example file name: |
Hi @Rudtrack, thanks for the comment. I still don’t understand what exactly the request is. Given the file name you quoted, what would you propose to make your custom backlink say? Also, have you tried the existing options? |
In an ideal world, I would like it to display a YAML field. For example display the text in a The request here is to give the ability to turn off the header being displayed in the backlink. So instead of the backlink being displayed as it currently is: |
Thanks, but what does "display a YAML field?" mean? Can you give us an example?
Ah right - that is something that is nicely clear and specific, unlike this one, which is requesting a function - rather more work. I was going to ask how that would differ from
|
With YAML, I mean the frontmatter of the file, or what Obsidian now calls Properties. So instead of displaying the file name in the backlink, it would rather display what's typed into In the example, the backlink would look like this: But like I said, that is far beyond the scope of this issue, but I could create a new issue and better documentation for that feature if you'd like |
Hi again @Rudtrack,
Thanks in advance. |
Ah right, I see. It's clear now, and an interesting idea. Thanks for explaining it. |
New issue created for the feature I described: #2923 |
🔖 Feature description
I would like to have more options on showing backlinks. For now there is only the option to show or hide. There is no way to only show the filename, or show only the heading, or changing the complete label string. Some manipulations are possible by using css, but this doesn't allow complex manipulations such as custom regex manipulations of the string.
✔️ Solution
I would like to give the backlinks a function parameter to manipulate the backlink label string (not the linked url itself). For example:
backlink by function match (.\W>\W(.))|((.*))
OR
backlink hide filename
OR
backlink hide header
❓ Alternatives
No response
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: