piroor / copy-selected-tabs-to-clipboard

Provides ability to copy title and URL of selected tabs to the clipboard for Firefox 63 and later.
Other
75 stars 15 forks source link

[Feature Request] Copy formatted links to clipboard #30

Open Vingolf opened 2 years ago

Vingolf commented 2 years ago

add an entry to the context menu when right-clicking on a link
to enable the use of favourite formats for links too.

If appropriate, add an option in the settings
to enable or disable this feature.

You created a very good add-on with Copy Selected Tabs to Clipboard
and I have several copy formats in use with it 👍

Vingolf

piroor commented 1 year ago

It looks interesting but beyond the scope of this project, and it looks hard to make the feature compatible to both tabs and links - links don't have "description" and some other information.

If you seriously require the feature, you should fork this project for the feature.

Vingolf commented 1 year ago

it looks hard to make the feature compatible to both tabs and links - links don't have "description" and some other information.

The user might select any text and this text is used as the description for the link 🤔

Format Link is an firefox addon that uses a selected text for a link

piroor commented 1 year ago

I meant that the "description" is a metadata provided by the author of the webpage (like <meta name="description" content="...">.) Templates shared between tabs and links will make things complicated.

Format Link is an firefox addon that uses a selectet text for a link

Yes, that is the answer. I recommend you to use the addon for in-page links together with this - basically I recommend Firefox users (and addon developers) to use/develop feature-oriented addons instead of all-in-one type addons. Mixing different context features blurs the concept and it will shorten project lifetime unwantedly.

Vingolf commented 1 year ago

Yes, that is the answer. I recommend you to use the addon for in-page links together with this - basically I recommend Firefox users (and addon developers) to use/develop feature-oriented addons instead of all-in-one type addons. Mixing different context features blurs the concept and it will shorten project lifetime unwantedly.

This is a profound argumentation and I think you can close this issue now ✅

piroor commented 1 year ago

The largest my concern about this feature was: how should we manage formats for tabs and links. We had to define similar templates for tab and link, so I thought that it will painful for users.

And here is a good news. I recently introduced a new placeholder %ANY(value1, value2, ...)% which will be filled with the first effective value. With this feature we can define a format supporting both cases: tab and link, so adding new functionality to copy links with a format became easier.

If you write a patch to support context menu commands on links, I'll merge it.