• crimsoncobalt@lemmy.world
    link
    fedilink
    arrow-up
    50
    arrow-down
    10
    ·
    1 day 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.

    • wolfinthewoods@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      3 hours ago

      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…

    • Overspark@feddit.nl
      link
      fedilink
      arrow-up
      12
      ·
      23 hours 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!

        • Overspark@feddit.nl
          link
          fedilink
          arrow-up
          1
          ·
          3 hours ago

          Had to look it up for you. I use (in kitty.conf):

          map ctrl+c copy_and_clear_or_interrupt
          map ctrl+v paste_from_clipboard
          

          Obviously you only need the first one for the copy bit but having paste as well is nice.

    • hallettj@leminal.space
      link
      fedilink
      English
      arrow-up
      42
      ·
      1 day 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.

        • Damage@feddit.it
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          11 hours ago

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

        • absGeekNZ@lemmy.nz
          link
          fedilink
          English
          arrow-up
          1
          ·
          14 hours ago

          I think at this point XKCD should be a TLD.

          I would join lemmy.xkcd in a heartbeat.

      • elmicha@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        1 day 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.

        • markstos@lemmy.worldOP
          link
          fedilink
          arrow-up
          3
          ·
          6 hours 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
    • markstos@lemmy.worldOP
      link
      fedilink
      arrow-up
      11
      ·
      1 day 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.

    • randy@lemmy.ca
      link
      fedilink
      arrow-up
      7
      ·
      1 day 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.

      • enemenemu@lemm.ee
        link
        fedilink
        arrow-up
        2
        arrow-down
        3
        ·
        1 day ago

        towards universal copy paste keyboard shortcuts

        What else does this say?

    • JubilantJaguar@lemmy.world
      link
      fedilink
      arrow-up
      11
      arrow-down
      7
      ·
      1 day ago

      Come on, having a 3-key combo for such a common task is a PITA. There’s a reason people have been complaining about this for decades.

      • markstos@lemmy.worldOP
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        1 day ago

        The first time you accidentally type Control-C into a terminal and cancel an important process when you meant to copy some text it becomes a PITA.

        • JubilantJaguar@lemmy.world
          link
          fedilink
          arrow-up
          8
          arrow-down
          3
          ·
          1 day ago

          Exactly. I do it pretty regularly and I’ve been using Linux for 20 years.

          And yet people here are still saying “no biggie”. It’s pure status quo bias.

          • Shanmugha@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            4 hours ago

            No, it’s recognising that terminal has its own rules and the learned Ctrl+C for copy has no sense… Okay, C-Copy. Some sense. Now, Ctrl+V for… vaste? :)

            All while having an Insert fucking button.

            In the end, me personally does not care as long as Ctrl+C continues to be the process-killer