Provide an option to use shortened backlinks #585
Replies: 2 comments 1 reply
-
Hello @matthewmerendo . Like you, in Tasks' query short mode, I wanted to see a link to the source file for each task, but I don't want to see the whole filepath and filename. I accomplished this by editing the addBacklinks function in the file main.js file that is located within a hidden directory of your vault: .obsidian/plugins/obsidian-tasks-plugin Just open that file and insert the line
in between these two lines:
and save your changes. As far as I can tell, the vault needs to be closed and re-opened for this edit to take effect. You can replace "src" with something else, if you prefer. Of course, this step will need to be repeated after subsequent updates to the Tasks plugin. |
Beta Was this translation helpful? Give feedback.
-
@matthewmerendo: You can ignore my previous comment. I saw just now that @schemar has released a new version of Tasks that supports a link emoji for backlinks in short mode. See changelog at https://github.com/schemar/obsidian-tasks/releases/tag/1.5.0 for more information. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I love showing my tasks in a single page with a query, and I love being able to click the backlink to find the originating context for the task. But backlinks are so long and unwieldy! It would be great if there were an option to use "shortened" backlinks -- instead of the entire page name, perhaps just a link arrow or something like that. So in our queries, instead of 'hide backlinks' we could do 'shorten backlinks' or something like that.
I thought about using CSS to zero out the font on backlinks and use a before pseudo-class to add an icon, but the link doesn't work then, which defeats the purpose.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions