Hi, good night everybody. I wanted to ask if anybody could help me with the following issue. I use the copy block link plugin: GitHub - mgmeyers/obsidian-copy-block-link: Get links to blocks and headings from Obsidian's right click menu. to copy links to headings. The issue is that, currently it displays the link with the following format: [[note#heading]] which become a hassle because each time I need to manually add an alias to the link. So, I am looking for a solution to automatically add the name of the heading as the alias i.e. [[note#heading|heading]] Is it possible to add this functionally by adding some lines of code to the original plugin, or is there any other solution to achieve this? Btw this problem was also documented in the following GitHub issue: [FR]: Add a commadng to set selected text as an alias for the inserted block reference · Issue #17 · mgmeyers/obsidian-copy-block-link · GitHub
Thanks in advance for any help.
Seems like it should be very doable.
First, check and see what the license policy is on the plugin - no one can legally add this functionality unless the author attaches a license to it (github should mention this) allowing people to fork/modify/copy/etc.
If that’s allowed, this seems like a pretty simple coding issue. An LLM like Claude Sonnet or ChatGPT o1 could probably solve this in less than 30 minutes of work.
Not promising you anything, but if I have some time later today I’ll check this out.
Hi, thanks for your answer.
Regarding the license of the plugin, this is what’s stated in the repo:
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
I’m also looking into this plugin! It sounds like a useful feature to automatically add the heading as an alias.
Yes. It would make the process of linking to headings way smoother.