mgmeyers/obsidian-copy-block-link

[FR]: Add a commadng to set selected text as an alias for the inserted block reference

Opened this issue ยท 4 comments

XMB-7 commented

I think it would be awesome if a command is available when right-clicking on the selected text to insert a block reference, meanwhile, automatically setting the selected text as the displayed name of it.

ๅ›พ็‰‡

Hi, I too want similar functionality. Can we just copy a link without the note title as its display name? Like:

Note.md#Heading instead of [Note](Note.md#Heading), after that it would be a piece of cake using the "paste URL into selection" extension.

washaa commented

I would like a similar option for "Copy link to heading", a toggle to make this command copy the link while renaming it to the heading:

current: [[note#heading]]
option: [[note#heading|heading]]

Perhaps not a new item in the dropdown menu, but a behavioural toggle option in the plugin settings.

This would be a great addition. Hopefully there are still plans to maintain this plugin.

I support both the original and @washaa's requests ๐Ÿ‘

Another user has modified "Copy Block Link"'s code to achieve this in #33.

And this should also be possible with a Carry-Forward command, although it doesn't work for me if selection contains spaces: jglev/obsidian-carry-forward#41.