uri-commands-obsidian icon indicating copy to clipboard operation
uri-commands-obsidian copied to clipboard

Support copying file/header/block links to clipboard

Open wenlzhang opened this issue 4 years ago • 2 comments

If this can be supported, one can paste the link to other external apps and open the desired Obsidian note/header/block there.

wenlzhang avatar Oct 02 '21 12:10 wenlzhang

By header, do you mean the section under the current heading, or the text of the heading itself?

kzhovn avatar Oct 03 '21 00:10 kzhovn

By header, do you mean the section under the current heading, or the text of the heading itself?

Originally, I was thinking about the link to the text of the heading itself, i.e. the link to "Header" in the example below. On a second thought, the text/section under the current heading may also be useful, i.e. all the text below "Header" in the example below.

## Header

Text.

- [ ] Task

Therefore, there can be different combinations for copying file/header/block links:

  • Only copy the link to the file, header (link to the text of the header) or block
  • Copy the link and the associated text to the file, header or block, i.e.
    • File link plus the content of the file
    • Header link plus the text under the header
    • Block link plus the text of the block
  • Only copy the text of the file (file content), header (text under the header) or block

wenlzhang avatar Oct 03 '21 07:10 wenlzhang