• kamen@lemmy.world
    link
    fedilink
    arrow-up
    25
    ·
    2 年前

    I’ve almost gotten into the habit of hitting Ctrl+Shift+C when I want to copy something because of that.

  • spez@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 年前

    Kitty has the feature that if you have text selected it will copy and if not then it will interrupt the command

    • 4am@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      5
      ·
      2 年前

      Oh what a great way to further entrench a bad habbit! Hang on I need to remedy some refactored code with rm -rf * which Kitty made safe if I’m in a directory with my project files 🙄

  • yokonzo@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 年前

    I literally just learned about Ctrl+c last week, I’ve been using terminal casually since I was 10, and always thought it was dumb that when a script was stuck hanging that I had to close the command window and redo my steps. I always thought it was weird that you had to right click to copy something and never thought why that might be the case, I have no excuses.

    • bellsDoSing@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      I additionally mapped that latter one to F2, because being able to repeatedly copy from VIM and paste into another application without having to move your hand between mouse and keyboard is nice.

      Of course, that’s VIM. If you meant “vim mode” in shell, then that’s a different story.

  • darcy@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    arrow-down
    4
    ·
    2 年前

    press enter and then immediately CTRL+C to stop, then anytime u need u can press UP to go back to where you were

      • darcy@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        arrow-down
        2
        ·
        2 年前

        no i was trying to show my method for avoiding that. i get the joke but i was also trying to be actually helpful

        • wols@lemm.ee
          link
          fedilink
          arrow-up
          10
          ·
          2 年前

          I can’t for the life of me figure out how your proposed method helps in the described scenario.

          Maybe I misunderstood it, can you elaborate?

        • El Barto@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          2 年前

          With your method, as soon as you hit control+C, the program is terminated.

          Or what are you doing to avoid the program being terminated?