-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Provide an option for Link copy format #12
Comments
This feature would be very welcome! |
if you do this: another useful format is that of org-mode, which is and another is as html link(s) |
Ideally I think you'd allow the user to create custom link styles. One solution would be to allow a user to create one or more named link styles (Markdown, Dockuwiki, MediaWiki, HTML ... whatever) and then define a link text template for each style ...
The user would then select this named style when they copy a link. Users like me are likely to want to frequently use all the different link styles at different times and so be able to quickly choose the link format when I copy a link (not have to navigate inside the extension options to re-select a link style every time). So if you added this I'd make the link styles names appear on the link menu that appears when you perform the link copy. They could appear be a "checked" menu option that does not close the menu. So your menu might be ...
The options can be hidden if only one style (Markdown) is defined. |
@tohagan Thank you for your suggestion. In fact I sometimes also have need to copy links in non-Markdown format e.g. RTF, in order to paste to rich text editors like Dropbox Paper. I think the UI you proposed is simple and easy to understand. I will consider working on this feature :) |
Thanks very much 👍 I think it will be a really valuable addition and hopefully not that hard to code |
This looks great. At this point you are one of the only Copy Link extensions that is multiprocess. Ideally I would love for it to do everything the CoLT extension used to do (especially the "Copy Link Text" menu item, which copies a hyperlink's associated text to the clipboard). |
Recent Firefox update destroyed almost all plugins which provide "copy link as something", except for this plugin. |
Another overnight-obsoleted extension is Easy Copy. Easy Copy has been on my shortlist of best extensions for years It has a simple yet very flexible configuration system which basically allows you to generated whatever markup language you need, while supporting many uses cases. Examples:
ScreenshotsConclusion
|
Hello @chitsaou Please add as well Asciidotor format: http://example.com[Title of the webpage] |
Thanks for this extension! I frequently use it to copy a bunch of tabs into my Markdown notes. However, I prefer Expected BehaviorSet a preference for list bullet to
Actual Behavior
|
Like @bhrutledge, I would prefer my copied text use This is the function that writes copy-as-markdown/src/background/markdown.js Lines 38 to 40 in e990a32
The simplest edit to that file that would support customizing the list bullet and nothing else might be this: export function list(theList) {
const bulletCharacter = userOptions.bulletCharacter || '*';
return theList.map((item) => `${bulletCharacter} ${item}`).join('\n');
} Then src/lib/options-manager.js would need to be edited to support storing a The template-based customization feature described in tohagan’s comment sounds more useful than just being able to customize the bullet character, and it would solve my problem. However, it sounds more complicated to implement. |
As an alternative to adding an bullet customization option as I described above, we could change the hard-coded bullet character from |
Related: #98 |
i.e. Let user choose whether the link is formatted as
or
The text was updated successfully, but these errors were encountered: