I read a lot of answers online that its a bad idea, but the arguments did not make a lot of sense. “it’s a heavily ingrained part of the eco system”. Well if I can change it, what’s the deal?

It makes more sense to make an interrupt signal be the harder shortcut, and copy to be ctrl+C, matching other programs and platforms.

  • Skull giver
    link
    fedilink
    40
    edit-2
    1 year ago

    Aside from the many decades of history behind the ctrl+c key combo, you may also be interested in an alternative shortcut for copying/pasting that works in every application: ctrl+insert for copy, shift+insert for paste. These combos work in browsers, terminals, text editors, and sometimes even websites that block pasting via ctrl+V.

    I often use other signals myself (ctrl+D for closing an input, ctrl+z for backgrounding a process).

    Other less used signals that are probably also available: ctrl+\ for SIGQUIT will gracefully terminate some programs (dd), or print diagnostic output in others (ping). ctrl+Q will reset the current line in the terminal. ctrl+R will let you search through your command line history in many Linux shells, and will repaint the screen while a command is running (which is useful when you’re using a TTY and some kind of system log suddenly comes rolling in over your running program’s output). Ctrl+S will pause a program, ctrl+Q will continue execution; this is useful for when you’re looking at commands printing loads of output without having to resort to less/more.

    That said, some terminals do bind SIGINT to ctrl+shift+C. Use whatever you prefer, I suppose!

    • @[email protected]
      link
      fedilink
      141 year ago

      Why have I never heard of Ctrl+insert combo? I almost don’t believe you. Will test when I get home

        • azron
          link
          fedilink
          41 year ago

          Linux has two paste buffers, at least in X and I assume Wayland is the same? . One buffer for ctrl-c/ctrl-v and one for selecting text/middle mouse. ctrl-insert and shift-insert are using the “last mouse selected text” paste buffer.

    • @[email protected]OP
      link
      fedilink
      91 year ago

      Ctrl+Insert gets pretty close, but some laptops, including Mac books, don’t have insert on their keyboard. 😔

      • Skull giver
        link
        fedilink
        31 year ago

        I believe Macbooks can copy/paste with command+C instead, though? The lack of keys is annoying on some Windows laptops, though. You could probably rebind keys or add shortcuts for super+c/v to copy/paste to make them behave like Macbooks (i.e. bind them to wl-clip or some other clipboard command) but I’ve never had to experiment with that.

        • @[email protected]OP
          link
          fedilink
          31 year ago

          Command+C on Mac books work, yes, But that still means inconsistencies across different platforms. I am forced to use macos for work, and I try to unify my shortcuts across the two platforms. Otherwise it’s disorienting using my personal computer after a day of work

          • @[email protected]
            link
            fedilink
            11 year ago

            My solution for this has been on my Linux machine, using keyd, to swap alt and super, and map super+c, super+v to copy and paste. (I also map super+L, super+R, super+T and super+W in Firefox to the control- equivalents using keyd’s per-application bindings functionality)

      • Magnus Åhall
        link
        fedilink
        21 year ago

        First thing I do on a new laptop is remapping a key I won’t be using much to Insert, which I use all the time :)

    • Papamousse
      link
      fedilink
      11 year ago

      Yep, I’m using ctrl-c and q and s and d and z etc for almost 40 years now, it would be difficult to change those habits