Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Wiki Link into Selection #31

Open
Signynt opened this issue Oct 16, 2021 · 9 comments
Open

Feature Request: Wiki Link into Selection #31

Signynt opened this issue Oct 16, 2021 · 9 comments

Comments

@Signynt
Copy link

Signynt commented Oct 16, 2021

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]]
@Archie-2021
Copy link

+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

@pw-64
Copy link

pw-64 commented Apr 13, 2022

+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!

@Friedolito
Copy link

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

@ryanwwest
Copy link

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
Copy link

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: ryanwwest@01d5db1.

@greetclammy
Copy link

Need this! 👍

I made the same request for two other similar plugins:


Hey @ryanwwest, how do I try out your fork of the plugin? 🤔

@Archie-2021
Copy link

Archie-2021 commented Dec 30, 2024

Need this! 👍

I made the same request for two other similar plugins:

Hey @ryanwwest, how do I try out your fork of the plugin? 🤔

You probably can do it easily yourself using templater plugin , now. It was so long ago and templater was still in early stage. I can't recall why I used this plugin at all at the time. But there has been so much progress and change in obsidian and its plugins since then.

@greetclammy
Copy link

greetclammy commented Jan 9, 2025

You probably can do it easily yourself using templater plugin

I can but it wouldn't work in Canvas cards. Templater throws up a "Templater error: No active editor" 😢

Made a FR for Templater to support Canvas cards:

@Archie-2021
Copy link

You probably can do it easily yourself using templater plugin

I can but it wouldn't work in Canvas cards. Templater throws up a "Templater error: No active editor" 😢

Made a FR for Templater to support Canvas cards:

It is not superising, Templater works only in source/livepreview mode (it literally inject the code in the note and run it and it is how it works). I don't use Canvas but I find that most of that sorts of features need their own internal way of doing things that are different with how plugins like this work (like obsidian-excalidraw for example). But maybe it is different I don't know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants