262
submitted 1 month ago by markstos@lemmy.world to c/linux@lemmy.ml
top 50 comments
sorted by: hot top controversial new old
[-] yesman@lemmy.world 87 points 1 month ago

There is an unintended benefit to putting an obstacle between people who don't know how to use the terminal and pasting code into it.

[-] pmk@lemmy.sdf.org 25 points 1 month ago

Expanding on this, we could make it so that root must use ed(1) to edit files?

[-] null@slrpnk.net 20 points 1 month ago

"Ed is the standard text editor."

[-] A_norny_mousse@feddit.org 5 points 1 month ago

Ha! Butterflies!

[-] spv@lemmy.spv.sh 3 points 1 month ago

you're evil. i love it.

[-] crimsoncobalt@lemmy.world 53 points 1 month ago

Control+C is used to kill a process in the terminal and that shouldn't be overwritten. If it is, you'd have to create a totally separate key binding to kill a process. Seems unnecessarily complex when Control+Shift+C works just fine.

[-] hallettj@leminal.space 47 points 1 month ago

The article doesn't suggest using Control+C. It talks about dedicated copy and paste key codes, and you can program your keyboard to map those codes to whatever keys you like. They suggest Fn+C.

[-] catloaf@lemm.ee 57 points 1 month ago
[-] Damage@feddit.it 8 points 1 month ago

Holy shit can you guys read the article please? It's an existing standard and a dedicated keycode

load more comments (1 replies)
[-] elmicha@feddit.org 5 points 1 month ago

We could use Ctrl+Insert and Shift+Insert like in the last three decades, but some of these keyboards apparently forgot about the Insert key.

[-] CommanderCloon@lemmy.ml 7 points 1 month ago

Well yeah but shift insert is annoying as hell since the keys are so far apart

[-] markstos@lemmy.world 3 points 1 month ago

I confirmed that these already supported a number of terminals plus QT and GTK. They could also be mapped to be more ergonomic with a programmable keyboard:

  • Control+Insert: Copy
  • Shift+Delete: Cut
  • Shift+Insert: Paste
load more comments (2 replies)
load more comments (3 replies)
[-] markstos@lemmy.world 13 points 1 month ago

Control+C is used to kill a process in the terminal and that shouldn’t be overwritten.

Agreed. The post didn't suggest that.

Seems unnecessarily complex when Control+Shift+C works just fine.

For people already using programmable keyboards global copy/paste shortcuts are a nice perk.

I spend nearly all my day in a browser or a terminal and as I use a terminal and browser that already support this, the effect is 99% complete.

[-] Overspark@feddit.nl 12 points 1 month ago

Kitty has a setting that makes Ctrl-C copy text, but only if you've selected something. If you haven't it does a regular break. Best of both worlds!

[-] randy@lemmy.ca 9 points 1 month ago

I feel like you may have misunderstood the article. It's talking about how support is increasing for dedicated Copy keys, and that programmable keyboards make it easy to use dedicated Copy keys. The article does not mention changing the behaviour of Ctrl-C.

load more comments (1 replies)
[-] Lucien@mander.xyz 4 points 1 month ago* (last edited 1 month ago)

And I'm pretty sure this key combination predates copy and paste key combinations.

load more comments (2 replies)
[-] markstos@lemmy.world 20 points 1 month ago

My patch to add Copy/Paste keycode support to the Cosmic Terminal was merged!

https://github.com/pop-os/cosmic-term/pull/481

[-] daggermoon@lemmy.world 4 points 1 month ago

As someone who likes Rust but dislikes the look of COSMIC, are there plans to allow theming?

load more comments (1 replies)
[-] ShittyBeatlesFCPres@lemmy.world 20 points 1 month ago

Honestly, this is a nice feature of macOS (or at least iTerm 2; I don’t use the official terminal). I know CTRL-C is used to kill processes and we all have that muscle memory but I usually try to change that on my personal Linux installs because I’ve hit it by mistake before.

I used to use CTRL+INSERT for copy and SHIFT+INSERT for paste but there’s usually no insert key on laptops or even small keyboards. It’s probably time to just adapt.

[-] davel@lemmy.ml 15 points 1 month ago

⌘C and ⌘V work in the native MacOS terminal app as well.

[-] kibiz0r@midwest.social 6 points 1 month ago* (last edited 1 month ago)

It’s the #1 thing that drives me crazy about Linux.

It seems obvious. You’ve got a Windows/Apple/Super key and a Control key. So you’d think Control would be for control characters and Windows/Apple/Super would be for application things.

I can understand Windows fucking this up, cuz the terminal experience is such a low priority. But Linux?

There’s some projects like Kinto and Toshy which try to fix it, but neither work on NixOS quite yet.

load more comments (2 replies)
[-] RedSnt@feddit.dk 3 points 1 month ago

I still use ctrl+ins and shift+ins every now and then. I've hit ctrl+shift+c a few times while in my browser (Vivaldi) which unfortunately is bound to "create note". Ctrl+ins is a great workaround than using an extra neuron when in a terminal to also hit shift when copying.

[-] daggermoon@lemmy.world 19 points 1 month ago

Holy fucking shit. I just realized that's why Ctrl + C and Ctrl + V don't work in Micro. This has been eye opening.

[-] lefixxx@lemmy.world 4 points 1 month ago

I have been trying to bind ctrl c to copy in micro and alacrity, I can't find a way.

load more comments (1 replies)
load more comments (1 replies)
[-] HelloRoot@lemy.lol 19 points 1 month ago* (last edited 1 month ago)

I've been using ctrl+c for copy and ctrl+v for paste for over a decade in my linux terminal by remapping the interrupt to ctrl+x.

It's basic ergonomics and user friendliness.

I do it on all my personal devices and servers.

Nothing bad happened in those ~15 years that I've been doing that. What the fuck are you arguing about?

[-] hexagonwin@lemmy.sdf.org 15 points 1 month ago

selection autocopy and wheel/shift ins pasting is superior to all alternatives imo

load more comments (2 replies)
[-] HiddenLayer555@lemmy.ml 14 points 1 month ago

Centre click is a godsend though. I recently had to start using Windows again and I keep instinctively hitting it.

[-] Zeoic@lemmy.world 4 points 1 month ago

One of the first things I had to disable when I switched to linux lol Middle click has so many other uses in windows that made it sooo jarring. Ctrl c and crtl v are good enough for me. (Or shift in terminals)

[-] brax@sh.itjust.works 3 points 1 month ago

Middle-click often works when ctrl+c/ctrl+v won't. It's also a separate buffer giving you the ability to have two different things copy/paste-able

[-] lemming741@lemmy.world 9 points 1 month ago

Ctrl+Ins gang rise up

[-] yaroto98@lemmy.org 8 points 1 month ago

That's why we have mice copy/paste bindings on most systems too. Highlighting text auto copies, and scroll wheel click pastes. Not all do this, but many do and have for a while.

[-] markstos@lemmy.world 7 points 1 month ago

That’s a popular terminal feature, but I regularly get tripped up because my terminal has that behavior but my browser does not.

That’s what’s nice about a global solution.

load more comments (8 replies)
[-] azimir@lemmy.ml 6 points 1 month ago

Wow. I haven't seen a Sun keyboard like that in .. geez forever. Whose were fun times. I was younger then.

load more comments (2 replies)
[-] lascapi@jlai.lu 6 points 1 month ago

Nice !! I like the 'old new again' effect ^^

[-] DonutsRMeh@lemmy.world 5 points 1 month ago

I don't want copy paste buttons support, I want the caps lock delay to be fixed. Yes, I use the caps lock not shift, as my brain can't get used to using shift for caps. I'm so tired of typing like THis all the time. 😂 (I'm using a hack currently that helps, but it would be nice if it gets fixed on Linux in general).

[-] sping@lemmy.sdf.org 5 points 1 month ago

I use a key remapper to give me the readline keys everywhere. Though I've used XKeysnail and xremap and they're both a bit flakey, so if anyone has better recommendations that work on X11 and Wayland, I'm all ears.

load more comments (2 replies)
[-] Nibodhika@lemmy.world 5 points 1 month ago

sigh can't believe that no one mentioned that there is a default set of shortcuts that are used across all GNU programs, and it's been the default since way before Ctrl+C/Ctrl+V existed. You can easily copy/paste stuff in any terminal using the same keypresses you would on Emacs, I.e. Ctrl+space to start selection, Alt+W to copy and Ctrl+Y to paste. In fact you can navigate the entire line the same way, not just copy/pasting but moving back and forward, selecting and deleting stuff, e.g. Ctrl+A Ctrl+K cuts the entire line.

Unless you activate Vi mode (which most terminals support) and then you can use the same keypresses you would on Vi, including ci" and other cool stuff that's much more powerful that simple copy/paste.

There is a default, it's just not the same as word uses.

[-] markstos@lemmy.world 3 points 1 month ago

You describing a kill ring which is internal to the shell and not synced to the system clipboard. Nor does it work in GUI apps.

The benefit of universal bindings is not have to learn one method for GUI apps, another for terminals and a third for shells implementing the kill-ring like bindings.

[-] MonkderVierte@lemmy.ml 4 points 1 month ago* (last edited 1 month ago)

there's a growing adoption of keyboards with custom firmware– programmable keyboards

  1. There's an error
  2. You have computers? We have computers to send keystrokes to our computers!

Edit: i mean, there's software to remap your keyboard.

[-] HelloRoot@lemy.lol 9 points 1 month ago* (last edited 1 month ago)

Wait till you find out that your SSD has it's own CPU, RAM and is running software on it's own micro-OS just for writing bits to flash storage.

Wait even more until you find out the same is true for your SIM card.

If you survive the shock, you could go on and write software that runs entirely on your SIM card in fucking JAVA.

[-] JasonDJ@lemmy.zip 3 points 1 month ago

Sup dawg. I heard you like microprocessors.

[-] bjoern_tantau@swg-empire.de 2 points 1 month ago

I used to have a Linux keyboard (with Tux instead of the Windows logo on super) with dedicated copy and paste keys. As far as I recall I never used them.

[-] markstos@lemmy.world 4 points 1 month ago

On old keyboards with those dedicated Copy/Paste keys, they weren’t easy to reach.

Now with programmable keyboards and layers, they can be as convenient as Control C & V.

On the software side, there were many years where they weren’t well-supported, but that’s changing now.

[-] Linktank@lemmy.today 2 points 1 month ago

This isn't a thing already? This is why people don't take linux seriously.

[-] markstos@lemmy.world 16 points 1 month ago

On Windows, Control-C in a terminal also cancels instead of copies. That’s why people don’t take Windows seriously.

load more comments (3 replies)
[-] aleq@lemmy.world 15 points 1 month ago

I assure you a great many people take Linux seriously.

[-] juipeltje@lemmy.world 3 points 1 month ago

You must be a mac user then because it doesn't make any sense to have that criticism as a windows user lmao

[-] Anti_Iridium@lemmy.world 2 points 1 month ago* (last edited 1 month ago)

Hey, this is one of the reasons I bought this keyboard!

For a couple extra bucks you can get them to make each individual key a separate key code by asking them to convert it to Single Usage Code Firmware, which is so nifty to me!

load more comments (2 replies)
load more comments
view more: next ›
this post was submitted on 08 May 2025
262 points (100.0% liked)

Linux

55931 readers
604 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 6 years ago
MODERATORS