• HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    2
    ·
    4 days ago

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

    • Zeoic@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      2
      ·
      4 days 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
        link
        fedilink
        arrow-up
        3
        ·
        4 days 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

  • Nibodhika@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    2
    ·
    4 days 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.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      4 days 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.

  • daggermoon@lemmy.world
    link
    fedilink
    arrow-up
    12
    arrow-down
    2
    ·
    5 days 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.

    • spv.sh@lemmy.spv.sh
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      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…

  • yesman@lemmy.world
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    6 days 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.

    • daggermoon@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      5 days ago

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

  • HelloRoot@lemy.lol
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 days 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?

    • Phoenixz@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      6 days ago

      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

      • HelloRoot@lemy.lol
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        6 days ago

        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.

          • HelloRoot@lemy.lol
            link
            fedilink
            English
            arrow-up
            0
            ·
            5 days ago

            My current setup:

            ~/.bashrc

              stty intr \^x
              bind -f ~/.inputrc
            

            ~/.inputrc

            set bind-tty-special-chars off
            
            set colored-stats on
            set show-all-if-ambiguous on
            set show-all-if-unmodified on
            set completion-ignore-case on
            set completion-query-items -1
            set page-completions off
            
            "\e[1;5C": forward-word
            "\e[1;5D": backward-word
            "\C-h": nop
            "\C-s":"\C-asudo "
            

            And in Konsole I have remapped copy to ctrl+C and paste to ctrl+V .

            I honestly don’t remember what each config line is for, cause it has been so long ago. And probably you don’t want all of that. Probably best to throw it into an AI and let it explain it line by line.

            • blackbrook@mander.xyz
              link
              fedilink
              arrow-up
              1
              ·
              5 days ago

              Thanks! I’m using konsole too, so that’s good to know. Do you remap something else to produce the ctrl-c character?

              • HelloRoot@lemy.lol
                link
                fedilink
                English
                arrow-up
                1
                ·
                edit-2
                4 days ago

                No, I press ctrl + c on my keyboard and in Konsole settings it is ctrl + c for copy

  • ShittyBeatlesFCPres@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    6 days 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.

    • kibiz0r@midwest.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      6 days 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.

      • fxdave@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        4 days ago

        I use Ctrl, Alt for applications, Super for the os/windowing. I hated MacOS which mixed these things. Luckily X.org let’s you do whatever you like, sometimes it’s just harder to configure. But I like it as it is.

      • Ferk@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        5 days ago

        “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.

  • yaroto98@lemmy.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 days 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.

  • DonutsRMeh@lemmy.world
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    5 days 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).

  • azimir@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    6 days ago

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

      • Anti_Iridium@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 days ago

        While correct, for the keyboard I linked, when you press F13 through F24 it sends Shift+F1 through Shift+F12. Which is not impossible to remap, but what if you need to press Shift+F1?

  • MonkderVierte@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    5 days 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
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      6 days 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.