obsidian-url-into-selection
obsidian-url-into-selection copied to clipboard
Feature Request: Wiki Link into Selection
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:
- User selects text
alias
- User enters square brackets to create a new link, and types it's name
Note
- User hits enter to complete the Wiki Link
- Plugin automatically appends the previously selected text that was replaced with the link, as an alias
[[Note|alias]]
+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
+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!
+1 this would save a ton of time! Looking for a solution for a while now, but havn't found anything good yet.
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.
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.