franglais125 / apt-update-indicator

Apt Update Indicator
https://extensions.gnome.org/extension/1139/apt-update-indicator/
GNU General Public License v3.0
44 stars 17 forks source link

New in repository: Copy package name to clipboard when clicked #17

Closed fi78 closed 6 years ago

fi78 commented 6 years ago

The feature "new in repository" is handy. But atm you need to type the package name to use it. Not perfect for packages with version numbers and or long names.

So it would be handy if you clicked on a package name that its name gets pasted into your clipboard.

franglais125 commented 6 years ago

That's a very neat idea! Thanks for the suggestion. I'll try to see if I find time to do it. PRs welcome of course!

fi78 commented 6 years ago

Here another extension that has this feature: https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator

franglais125 commented 6 years ago

Great, thanks! I'll paste here the link to the relevant function for future reference: https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator/blob/master/extension.js#L225

franglais125 commented 6 years ago

@fi78 I just added support for this, for all lists of packages (new in repository, updates, obsolete, etc).

Would you mind testing it?

franglais125 commented 6 years ago

Here: [b9876a930d85a9c9b098cfeeda07390293966be4]. Loving this by the way!

fi78 commented 6 years ago

Updated and tested. Works well. Did you change the entries to monospace as well?