obsidian-url-into-selection icon indicating copy to clipboard operation
obsidian-url-into-selection copied to clipboard

Feature Request: Wiki Link into Selection

Open Signynt opened this issue 3 years ago • 5 comments

It would be a very useful feature to be able to use this plugin on Wiki Links, so that you could select some text that you would like to be the alias, which would be automatically added to a new link you create. It might work like this:

  1. User selects text alias
  2. User enters square brackets to create a new link, and types it's name Note
  3. User hits enter to complete the Wiki Link
  4. Plugin automatically appends the previously selected text that was replaced with the link, as an alias [[Note|alias]]

Signynt avatar Oct 16 '21 08:10 Signynt

+1 for this. Also it would be awesome if you add the basic function of this for wikilinks. It would work perfectly with 'obsidian copy block link' plugin

Archie-2021 avatar Oct 16 '21 08:10 Archie-2021

+1 this was why i came here, to make this same request it would be such a useful feature, especially if added to the command palette

@denolehov this would be an amazing addition to one of my favourite plugins!

pw-64 avatar Apr 13 '22 08:04 pw-64

+1 this would save a ton of time! Looking for a solution for a while now, but havn't found anything good yet.

Friedolito avatar May 23 '22 18:05 Friedolito

I'd like this too, would love to use in conjunction with the clipboard contents from https://github.com/mgmeyers/obsidian-copy-block-link. I wonder if there's anyway that the Regex string could be modified to recognize wiki links, but seems unlikely.

ryanwwest avatar Oct 12 '22 04:10 ryanwwest

I forked and implemented this. Haven't found any bugs or behavior different from the original plugin. I'll probably make a PR soon but you can test it here if you want: https://github.com/ryanwwest/obsidian-url-into-selection/commit/01d5db199cfe7337663cacb70a990d56baff1817.

ryanwwest avatar Oct 24 '22 06:10 ryanwwest