this post was submitted on 01 Jul 2023
8 points (100.0% liked)

Linux

48655 readers
1510 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm currently using Klipper, and it's fine, I suppose, but I miss the ability to cycle through the previous clips with simple keypresses, like in the emacs killring (the only thing I miss from my very brief experimentation with emacs back in the day).

top 8 comments
sorted by: hot top controversial new old
[–] pglpm 2 points 2 years ago (1 children)

If you right-click on the Klipper tray icon, select "Configure..." and then "Shortcuts", you can assign shortcuts to move back and forth in the kill ring, and to paste. I have assigned S-v for backwards and S-C-v for forward. Then the usual C-v will paste. The tray icon also shows you the current selection (and the ones above and below) in the killring, as you move through it.

[–] eyolf 2 points 1 year ago (2 children)

That's more or less what I do, but it's not quite killring'y. The workflow I'm looking for is: paste as usual with ctlr-v, then press some shortcut to replace the pasted with the previous item in the "ring", without having to go through the backwards process of first enabling klipper, then choosing item, and only then entering it.

But I'll play around with it some more and see what I figure out.

[–] pglpm 1 points 1 year ago (1 children)

PS: there's also another functionality of Klipper that I use from time to time: you can make the whole "killring" appear, and choose the entry you want to paste with the mouse: as you click it it's entered. This is also bound to a key (in my case S-w) and works no matter which window I'm in.

[–] eyolf 2 points 1 year ago (2 children)

Which functionality is that? I haven't found anything that enters the selected item directly, without having to C-v it afterwards. Besides, the mouse is a thing I want to avoid… I played around with some other functions, however, and I found out that cycling through the history items works fairly well for me.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

PS: actually with Klipper I can go back and forth in the clipboard history too. I don't know if this is possible in Emacs. For example, if I go back two history steps, and then realize that I went too far by one step, I'd type H-v H-v H-C-v C-v. The H-C-v is "undoing" the last H-v.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

For the list of all clipboard items, ready to be chosen: Klipper tray icon, right-click → Configure clipboard → Shortcuts→ "Open Klipper at Mouse Position". You can choose from the list either with the up/down keys, or with the mouse.

Klipper's item-cycling doesn't require more keystrokes than Emac's. For example, what I achieve in Emacs with C-y M-y M-y I achieve with Klipper with H-v H-v C-v (no need to operate with the mouse). H is the "hyper" or "super" key – but the keys are fully customizable.

[–] pglpm 1 points 1 year ago

Gotcha. Yes, haven't found anything that allows that specifically. But in my case I don't need to enable klipper; it's always active. No matter which windows I'm in, pressing C-v will paste whatever it's in the clipboard; whereas pressing e.g. S-v C-v will choose the previous item in the clipboard and then paste it.

[–] ramanga 1 points 2 years ago

I've played with clipster and a rofi menu to access previous entries IIRC

load more comments
view more: next ›