dokuwiki-template-bootstrap3 icon indicating copy to clipboard operation
dokuwiki-template-bootstrap3 copied to clipboard

2nd Anchor on hover to copy formatted text to clipboard

Open cjohnsonuk opened this issue 2 years ago • 0 comments

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

cjohnsonuk avatar Mar 24 '22 12:03 cjohnsonuk