elementary / triage

Catch-all repo for issues that don't have a better home
https://elementary.io
4 stars 2 forks source link

Clipboard Shortcut #602

Open Imauny opened 1 month ago

Imauny commented 1 month ago

Problem

Unable to access clipboard history from the notification panel and a few extensions are needed.

Proposal

It would be really nice for you guys to add a built-in clipboard shortcut with a history feature so that we can easily copy and paste multiple things. Also, adding a few extensions similar to GNOME extensions would be nice. Personally, I'm torn between Elementary OS and Ubuntu because of those GNOME extensions. They are very useful. So if you could copy and implement a few of those extensions, that would be really nice and much appreciated.

Prior Art (Optional)

No response

teamcons commented 1 month ago

On eOS 7, If you hold control and click on the dock, there is a preference button. It allows to add a clipboard manager There are Clips and Clipped, as well, for eOS, to manage clipboard history.

for the extensions, nothing stops you from installing Gnome-Shell alongside eOS, and choose at login which to log in to. But else im afraid there arent enough contributors to translate gnome extensions into unofficial wingpanel indicators. More people with coding skills will need to want to help the team.

Ive tried doing a clipboard indicator but alas im not good enough with Vala for this...

jeremypw commented 1 month ago

I just hacked together a very crude implementation here https://github.com/jeremypw/clipboard-indicator. This adds another wingpanel indicator that accumulates a list of (unique) text items copied to the clipboard during the current session. Clicking on an item copies that back to the clipboard ready for pasting. Needs a lot of design input (desirability, appearance, features etc) before taking it further.

teamcons commented 1 month ago

I just hacked together a very crude implementation here https://github.com/jeremypw/clipboard-indicator. This adds another wingpanel indicator that accumulates a list of (unique) text items copied to the clipboard during the current session. Clicking on an item copies that back to the clipboard ready for pasting. Needs a lot of design input (desirability, appearance, features etc) before taking it further.

Oooh amazing ! It works ! (eOS 8, Wayland) thank you !

Ill try to figure out what i could do (i thought of a clear button and a dconf max entries, but that may be too much already) Had a popover like this one in mind: https://github.com/Dirli/wingpanel-indicator-workspaces/

jeremypw commented 1 month ago

@teamcons You can uninstall the plugin itself by using sudo ninja uninstall. In this case I don't think there is anything that requires manual uninstalling as it is a very minimal implementation.

Some things that a more practical implementation would need are

I don't like that we have to poll the clipboard for new entries but I didn't find an alternative - maybe someone else can.

There is some standard infrastructure like translation, CI, gschema missing that an official elementary app would need.

jeremypw commented 1 month ago

A more advanced feature would be the ability to pin some favorite entries and list them separately. Persisting pinned entries between sessions may also be useful.

teamcons commented 1 month ago

A more advanced feature would be the ability to pin some favorite entries and list them separately. Persisting pinned entries between sessions may also be useful.

I wrote an issue with design on your repo !

What are the chances for something like this to be official though ?

Not set on the need for a clear button either. But didnt think of pinning.

jeremypw commented 1 month ago

What are the chances for something like this to be official though ?

I guess that is something @danirabbit would have to approve. There are a number of existing stand-alone clipboard manager apps in the AppCenter which also handle images etc so I don't think making another is worthwhile although it could conform better to modern elementaryos design. There is a space for a wingpanel indicator which is easier to access and use I would think but third-party indicators are not supported (I think) so it would have to be official.