this post was submitted on 11 May 2024
555 points (96.8% liked)

Programmer Humor

19462 readers
18 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 5 months ago

Give CopyQ a try. Open source, cross platform clipboard manager with tons of features.

One example option is being able to only ever paste plain text. It also has lots of programming hooks, I have a few for doing things like converting a line-feed delimited list into one delimited by commas and quoting the values.

[–] [email protected] 4 points 5 months ago (2 children)

I like vim and use it almost every day, but sometimes I miss Strg+D and Alt+F3 from Sublime (multi edit). Block select + c isn't as useful as this.

[–] [email protected] 1 points 5 months ago

Give the Kakoune editor a try for native multi cursor editing. Or better yet, if you are a developer, the Helix editor.

I'm a web developer and transitioned quite seamlessly to the Helix editor from Visual Studio Code without much hassle.

The Helix editor is growing and gaining new functionality all the time.

[–] [email protected] 3 points 5 months ago (2 children)

the vim-visual-multi plugin tries to do this. It takes some time to get the hang of it, but, even if using only the simplest features, it's way better than not having the option.

[–] [email protected] 2 points 5 months ago

Works like a charm. Thanks again. Even mouse selection.

[–] [email protected] 2 points 5 months ago

Thank you, I will try it.
Seems that I need to remap a few keys like for NerdTree and my tab switch.

[–] [email protected] 30 points 5 months ago (1 children)

Y'all haven't heard of Windows clipboard history? Windows + V will change your life, I tell ya!

[–] [email protected] 0 points 5 months ago (3 children)

Last I checked you have to enable it, which is annoying.

[–] [email protected] 4 points 5 months ago (3 children)

To be fair it may be a security concern if someone is copy pasting passwords

[–] [email protected] 5 points 5 months ago

Keeping their admin password in the history so they don't have to alt+tab to their Secret Server webpage? W-who would do such a thing?!

[–] [email protected] 2 points 5 months ago

Yeah, it floors me that it doesn’t look see a high-entropy 8+ character strings and not keep it.

[–] [email protected] 3 points 5 months ago

I was going to mention that was a potential issue

[–] [email protected] 14 points 5 months ago

You use it once, it asks if you want to enable, and you click literally one button.

[–] [email protected] 8 points 5 months ago (1 children)

Meanwhile, this was a feature on KDE-land since Klipper, which goes back (as far as I know and if I remember well) to KDE 3 or sooner.

[–] [email protected] 6 points 5 months ago (1 children)

There have been third party clipboard managers forever in windows, which is kind of funny because that is almost more like the unix philosophy than expecting the UI system to handle it all.

[–] [email protected] 3 points 5 months ago (1 children)

Klipper was entirely a different program, process, etc. that was using the system tray. Nowadays it seems to be a plasmoid in the system tray. How can that be less of a UNIX philosophy than the Windows alternative? Because it's developed by the same community that makes the shell? That doesn't make sense to me.

[–] [email protected] 3 points 5 months ago

Then it's not really an apt comparison as the two are comparable. I had assumed based on context we were talking about our of the box functionality from KDE, but if it's not, then KDE and Windows had equivalent lack of clipboard history without extra tools installed.

[–] [email protected] 25 points 5 months ago (2 children)

And I still don't really know how to use registers in vim 😂 I just use yy and paste 🥲

[–] [email protected] 29 points 5 months ago* (last edited 5 months ago) (3 children)

You just do " (listen for next character as register name)

Then, say q,w,e etc, then yy to yank as normal.

So "wyy

To retrieve it you use "wp

To add to it "Wyy

To view them :reg

Remember you can make "w anything, like "x or "p

And each time you yank it gets pushed into the default register history "0 "1 "2 etc

[–] [email protected] 4 points 5 months ago

Ok I have to save that 🥲 thanks!

[–] [email protected] 2 points 5 months ago

Great explanation. Thank you!

[–] [email protected] 6 points 5 months ago

I didn't know about registers, thank you for this!

[–] [email protected] 5 points 5 months ago (1 children)

I only know how to use them with q. I hope that's a register, otherwise I will look foolish.

[–] [email protected] 4 points 5 months ago

They are. Registers are just "named boxes" where you can store some text and/or keystrokes. When yanking and pasting, the unnamed register is used if you don't specify a name (you can still see or edit it explicitly). For recording a macro there is no default register, though. You need to give it a name.

load more comments
view more: next ›