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

FR: Wikilink support #134

Open
greetclammy opened this issue Dec 30, 2024 · 0 comments
Open

FR: Wikilink support #134

greetclammy opened this issue Dec 30, 2024 · 0 comments

Comments

@greetclammy
Copy link

greetclammy commented Dec 30, 2024

Hi, thank you for this plugin!

It'd be wonderful is this plugin also worked for wikilinks.

When I have, let's say, Note 1 and Note 2 open side-by-side and I want to link something from Note 1 (or Note 1 itself) in Note 2, instead of using the auto-suggester (i.e. what you see when you input [[ ) and fiddling around with | and aliases, I'd like to follow this workflow:

  1. Copy a wikilink to Note 1 (with Copy Block Link or a Templater script).
  2. Select the text in Note 2 that I want to become the wikilink's alias. (With Preserve selection as title set to ON.)
  3. Insert the wikilink.

So, the desired behavior is as follows:

If clipboard is:

a)

[[Lorem]]

or

b)

[[Lorem|Alias]]

And pasted into selection

Ipsum

Then output:

[[Lorem|Ipsum]]

In case b), omit Alias in favor of Ipsum.

This would make linking notes all the more convenient!


This was also requested for Paste Link and Paste URL into selection:

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

1 participant