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

Add support for [[Wikilinks]] #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryanwwest
Copy link

@ryanwwest ryanwwest commented Oct 29, 2022

This adds support for wikilinks in the same way that URLs are supported. I.e., upon pasting if text is already selected, both the clipboard contents and the selected text are parsed to see if one contains a [[wikilink]]. If so, it takes the wikilink text and gives it text for display using the non-wikilink text. For example:

selected text is [[really-long-name-of-a-note]] and clipboard text is see here. After pasting, the result becomes [[really-long-name-of-a-note|see here]]. The result would be the same if 'selected text' and 'clipboard text' assumed opposite roles.

Signed-off-by: ryanwwest <ryan@ryanwwest.com>
@ryanwwest
Copy link
Author

This is meant to address #31.

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

Successfully merging this pull request may close these issues.

None yet

2 participants