Progress towards universal Copy/Paste shortcuts on Linux
Progress towards universal Copy/Paste shortcuts on Linux

Progress towards universal Copy/Paste shortcuts on Linux

Progress towards universal Copy/Paste shortcuts on Linux
Progress towards universal Copy/Paste shortcuts on Linux
Centre click is a godsend though. I recently had to start using Windows again and I keep instinctively hitting it.
selection autocopy and wheel/shift ins pasting is superior to all alternatives imo
Holy fucking shit. I just realized that's why Ctrl + C and Ctrl + V don't work in Micro. This has been eye opening.
I have been trying to bind ctrl c to copy in micro and alacrity, I can't find a way.
Always a pleasure to meet another Micro user.
xclip?
weird -- they work for me. ctrl+c sends SIGINT, and ctrl+v iirc isn't treated specially. i figured sending SIGINT with kill would then preform a copy, but it doesn't. fuck. now i have another puzzle...
My patch to add Copy/Paste keycode support to the Cosmic Terminal was merged!
As someone who likes Rust but dislikes the look of COSMIC, are there plans to allow theming?
There are already settings to change some of the colors used.
For the terminal in particular there is an option to hide the menu bar, making it look as Foot or Alacritty do.
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).
Nothing wrong with you using caps lock instead of shift, but I haven't noticed any 'caps lock delay' personally.
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 10 years that I've been doing that. What the fuck are you arguing about?
I might actually do that too, but not for ergonomics. I'm just going nuts with sometimes ctrl-c,. sometimes ctrl-shift-c, sometimes ctrl-ins
Mapping copy and paste to different modifer helped for me. Alt or Mod1 + c or v is easy to reach.
If you need any help, ping me and I'll share my setup.
The reason you gave still falls under the concept of ergonomics.
From wikipedia:
Ergonomics, also known as human factors or human factors engineering (HFE), is the application of psychological and physiological principles to the engineering and design of products, processes, and systems. Primary goals of human factors engineering are to reduce human error, increase productivity and system availability, and enhance safety, health and comfort with a specific focus on the interaction between the human and equipment.
It would be a more ergonomic (and less error prone) system if you modify the shortcuts so that you don't fumble them.
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.
That's what I came here to say. What's the point in making an unnecessarily complex "hack" to circumvent what shift-control-c and v does? I've never had a problem with it. And there's something to be said for not making it super easy to paste text to a terminal, especially from places online...
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.
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.
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.
towards universal copy paste keyboard shortcuts
What else does this say?
And I'm pretty sure this key combination predates copy and paste key combinations.
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.
⌘C and ⌘V work in the native MacOS terminal app as well.
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.
"Super" is the one modifier key that you can rely on overwriting without interfering with normal app shortcuts, so I'd personally rather prefer if applications don't start trying to use the Super key for their own things.
I have set up Super key shortcuts for all kinds of desktop management operations, opening the launcher/terminal/browser, switching workspaces/windows, closing windows, move/resize, switch tiling mode, audio control, make my package manager install updates, switch between a set of resolutions, activate my password manager, etc.
That said, Copy/Paste is a general/global enough operation that I would not mind having Super+C/V send to the current active app the Copy/Paste keycode (I might do that actually, now that I know that there's a code apps are starting to support!). But I think it should be the desktop environment the one configuring "Super" shortcuts, not the app.
It makes sense for each application to have their own interpretation of what does each control character (or Control shortcut) do. It's not like all control characters have a very reliable meaning to begin with.. I mean, the backspace character (Control+H) was originally meant to move a character backwards without deleting it, but most screen terminals didn't do that. If what you mean is alternate characters from Unicode and so, then the "Alt" key would be more suitable for that. And in ISO keyboards, "AltGr" is a very common way to have combinations that insert alternate symbols.
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.
I have a typematrix keyboard.
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.
There’s KMonad. Though I tried it once and found it didn’t behave quite like I expected and gave up.
I think that's a slightly different animal. AFAIK it's doesn't switch config depending on the current focused window. E.g. for some programs I don't want remapping.
Wow. I haven't seen a Sun keyboard like that in .. geez forever. Whose were fun times. I was younger then.
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.
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.
Ctrl+Ins gang rise up
Nice !! I like the 'old new again' effect ^^
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!
there's a growing adoption of keyboards with custom firmware– programmable keyboards
Edit: i mean, there's software to remap your keyboard.
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.
Sup dawg. I heard you like microprocessors.
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.
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.
This isn't a thing already? This is why people don't take linux seriously.
You must be a mac user then because it doesn't make any sense to have that criticism as a windows user lmao
I assure you a great many people take Linux seriously.
On Windows, Control-C in a terminal also cancels instead of copies. That’s why people don’t take Windows seriously.
Powershell uses ctrl c