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

    • markstos@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      10 days 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.

      • lime!@feddit.nu
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        9 days ago

        in most systems this is global. it’s provided by the desktop and programs just see a copy/paste event. are you on wayland by any chance?

          • lime!@feddit.nu
            link
            fedilink
            English
            arrow-up
            0
            ·
            9 days ago

            yeah that’d do it. on X11 this is a solved problem, but wayland delegates the responsibility to the wm, and i don’t think anyone other than gnome has actually implemented it. another one of the paper cuts that makes it hard for me to make the switch.

        • janAkali@lemmy.one
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          10 days ago

          There’s only two. One has broken primary selection, the other has anti-user policies against adblock plugins.

          I can live without copy on highlight. But you could pry UBlock Origin from my cold, dead hands.

  • crimsoncobalt@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    10 days 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.

    • JubilantJaguar@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 days 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
        0
        ·
        10 days 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
          0
          ·
          10 days 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
            0
            ·
            9 days 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

    • randy@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      10 days 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.

    • hallettj@leminal.space
      link
      fedilink
      English
      arrow-up
      0
      ·
      10 days 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.

    • Overspark@feddit.nl
      link
      fedilink
      arrow-up
      0
      ·
      10 days 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
          0
          ·
          9 days 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.

    • wolfinthewoods@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 days 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…

    • markstos@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      10 days 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.

  • Nibodhika@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 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
      0
      ·
      8 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.

  • Björn Tantau@swg-empire.de
    link
    fedilink
    arrow-up
    0
    ·
    10 days 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.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      10 days 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.

  • yesman@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    10 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.

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

    • gradual@lemmings.world
      link
      fedilink
      arrow-up
      0
      ·
      8 days ago

      Nothing wrong with you using caps lock instead of shift, but I haven’t noticed any ‘caps lock delay’ personally.

      • DonutsRMeh@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        8 days ago

        Oh, many people gave me shit for using caps lock, and the delay is a very well known issue on Linux in general. There are even a couple of fixes for it by some folks. Like this one. And even the archwiki has a workaround for it. It’s a major pain for me. lol

  • sping@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 days 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.

    • markstos@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      10 days ago

      There’s KMonad. Though I tried it once and found it didn’t behave quite like I expected and gave up.

      • sping@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 days ago

        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.

      • Anti_Iridium@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 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?

  • HelloRoot@lemy.lol
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    10 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
      0
      ·
      10 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
        10 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
            ·
            9 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
              0
              ·
              9 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?

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

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

  • MonkderVierte@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    10 days ago

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

    1. There’s an error
    2. You have computers? We have computers to send keystrokes to our computers!
    • HelloRoot@lemy.lol
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      10 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.