• sunset@reddthat.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    23 hours ago

    Yeah I know about Ctrl+Shift+C I was joking, I think we’ve can all relate to accidentally sending a interrupt signal every now and then!

    Now tell me how to copy text from nano and paste it elsewhere! 😆

    • toynbee@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      23 hours ago

      It did seem likely you would know, but if I can, I’d prefer giving someone redundant knowledge over hoarding information they could use.

      I can definitely relate to accidentally ending a process, especially back when I used PuTTY. Very frustrating.

      I use vim, but I’ve never had trouble copying text out of it the same way I would out of any other terminal process. Does nano introduce special challenges?

      • sunset@reddthat.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        22 hours ago

        If you highlight text in nano using your keyboard I think it uses nanos built-in highlighting and doesn’t allow copying to the clipboard. It has it’s own built in cut and paste system, and not on the keys you would expect.

        If you highlight the text with your mouse it uses the terminals highlighting and copying to your clipboard works!

        Just lot’s of inconsistency is what I’m saying, similar to your Firefox experience!

        • toynbee@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          22 hours ago

          Oh yeah - if you’re using your keyboard, it’s a different prospect. In vim, I would use the yank functionality, but that doesn’t travel between windows. I wouldn’t know how to do that without the mouse.

          I’m afraid I can’t help you with nano, either, but good luck in your search!

    • CrazyLikeGollum@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      20 hours ago

      Can’t tell you about nano, but in Vi it’s yy to copy (or yank) a line, insert a number between the y’s to copy more than one line. I.e. y5y to yank 5 lines.

      Then p to paste.

      Can also just use your terminals method for copy paste, just remember to hit i for insert before you paste.