Skip to content
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

Clipboard Shortcut #602

Open
Imauny opened this issue Oct 21, 2024 · 7 comments
Open

Clipboard Shortcut #602

Imauny opened this issue Oct 21, 2024 · 7 comments

Comments

@Imauny
Copy link

Imauny commented Oct 21, 2024

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

@danirabbit danirabbit transferred this issue from elementary/switchboard-plug-useraccounts Oct 21, 2024
@teamcons
Copy link

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
Copy link

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
Copy link

teamcons commented Oct 22, 2024

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
Copy link

jeremypw commented Oct 23, 2024

@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

  • Limit number of entries (probably hard-coding would be enough). So need to remove oldest (least used??) row when the limit is exceeded.
  • Hide indicator when there are no text clipboard entries
  • Not sure about a Clear Button but the indicator should honor the Privacy/History setting and not show when History is disabled.
  • This should probably be an optional indicator (like NumLock and CapsLock) if it were to become official so there would need to be a setting and a corresponding switchboard switch controlling that.

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
Copy link

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
Copy link

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
Copy link

jeremypw commented Oct 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants