[Enhancement] plasma-workspace / klipper - Automatically paste after selecting an item from Klipper history

Add optional “Auto-paste after history selection” setting


Description

Please consider adding an optional setting to automatically trigger paste after selecting an item from the Klipper history popup.

Proposed setting

[ ] Automatically paste after selecting a history item
Default: disabled

Intended behavior

When enabled:

  1. User opens the Klipper popup.

  2. Selects an item (Enter or mouse click).

  3. Klipper sets the clipboard as usual.

  4. Klipper invokes the global Paste shortcut via KGlobalAccel (DBus).

This would paste into the currently focused window.


Motivation

On Wayland, external input injection tools (e.g. xdotool) are not available.
The current workflow requires:

  • Open popup

  • Select item

  • Press Ctrl+V manually

For frequent snippet reuse, the extra step adds friction.

7 Likes

Im missing this feature from other clipboard managers.

Im also manually monitoring clipboardHistoryUpdated from the dbus interface to play a subtle audio clip on copy, but the interface is fairly limited and wont distinguish user picks from the list, from legitimate copy.

Worth saying that Im on X11, and I still need this option :slight_smile:

I’ve attempted an implementation for this, I did use some AI for the C++ heavy parts but did try to keep it as concise as possible, will need review of course.

Hi I implemented auto paste for Klipper, are you able to pull a merge request and test it? or you’re a normal user and want to wait to see if it gets added to the official release?

Hey man sorry I missed your first message. Thats great! Though Im just a user here atm :slight_smile:
Also, not sure they want generated code… maybe the review will go right :+1:

Well it’s not all AI, but we’ll see, it does work with X11, not sure about FreeBSD though.

1 Like

This feature is really needed