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

2nd Anchor on hover to copy formatted text to clipboard #557

Open
cjohnsonuk opened this issue Mar 24, 2022 · 0 comments
Open

2nd Anchor on hover to copy formatted text to clipboard #557

cjohnsonuk opened this issue Mar 24, 2022 · 0 comments

Comments

@cjohnsonuk
Copy link

Is your feature request related to a problem? Please describe.
When using the include plugin I have to copy the link path from the section I wish to include then turn it from a full URL into an internal wiki link which for my tree of embedded namespaces takes longer than I'd like

Describe the solution you'd like
Can a Second Anchor be added that provides a link formatted as an internal link instead,

image

If there was an option of surrounding this link with the full include tag that would be even better, especially for those new to Wiki mark up. The current Anchor can be right clicked and link copied for the full url : https://mywiki.org/namespace1/namespace2/2022/published/project1/week2/start#my_new_linked_section

It would be good to be able to click another link and it copy the following to the clipboard
{{section>namespace1:namespace2:2022:published:project1:week2:start#my_new_linked_section&[flags]}}

where the default [flags] can be set in the configuration for DW, or maybe have everything preceding the namespaces as a prefix and everything after the #section as a suffix customisable in the configuration

Describe alternatives you've considered
I couldn't find any plugins that do this already

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

No branches or pull requests

2 participants