• suy@programming.dev
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        5 months ago

        Meanwhile, this was a feature on KDE-land since Klipper, which goes back (as far as I know and if I remember well) to KDE 3 or sooner.

        • dariusj18@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          5 months ago

          There have been third party clipboard managers forever in windows, which is kind of funny because that is almost more like the unix philosophy than expecting the UI system to handle it all.

          • suy@programming.dev
            link
            fedilink
            arrow-up
            0
            arrow-down
            1
            ·
            5 months ago

            Klipper was entirely a different program, process, etc. that was using the system tray. Nowadays it seems to be a plasmoid in the system tray. How can that be less of a UNIX philosophy than the Windows alternative? Because it’s developed by the same community that makes the shell? That doesn’t make sense to me.

            • dariusj18@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              5 months ago

              Then it’s not really an apt comparison as the two are comparable. I had assumed based on context we were talking about our of the box functionality from KDE, but if it’s not, then KDE and Windows had equivalent lack of clipboard history without extra tools installed.

      • riot@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        I took a look through my power toys settings, but couldn’t find anything there that had to do with the win+v clipboard history. Google hasn’t been any help either. What is it that I’m overlooking? How does powertoys improve the clipboard history feature?

        • MrScottyTay@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          5 months ago

          I’m currently not on my windows pc at the moment but it could be that it’s functionality might actually be native to win 11? I don’t realise use it myself I just remember seeing it when originally getting powertoys and thinking that was cool

          • riot@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            5 months ago

            The Clipboard History is indeed a part of Windows 10. But I was wondering how PowerToys enhanced the functionality of it.

      • Ephera@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        Ah, that is what I meant with OS-level clipboard manager (in fact, that is precisely what I thought of).

      • rtxn@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 months ago

        Yes. X11 replaced X10’s obsolete cut buffers (which can be modified by any process) with state-of-the-art selections. There are three selections in X11: a primary, a secondary, and a clipboard.

        In modern desktops, the primary selection is overwritten every time you select some text (including in the terminal), which makes its content very ephemeral. You can paste it with the middle mouse button.

        The secondary selection is generally not used, but it’s present in the specification, and you can use xclip -selection secondary to access it. Wayland doesn’t seem to have a secondary selection.

        The clipboard selection is what most people understand to be THE clipboard. You have to write to it explicitly (through a keyboard shortcut, API, or CLI tool), and its content persists until it is overwritten, explicitly cleared, or the X server is killed. While the primary and secondary can only contain text, the clipboard can contain many kinds of data.

  • DavidP@midwest.social
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    Give CopyQ a try. Open source, cross platform clipboard manager with tons of features.

    One example option is being able to only ever paste plain text. It also has lots of programming hooks, I have a few for doing things like converting a line-feed delimited list into one delimited by commas and quoting the values.

    • Psaldorn@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      5 months ago

      You just do " (listen for next character as register name)

      Then, say q,w,e etc, then yy to yank as normal.

      So "wyy

      To retrieve it you use "wp

      To add to it "Wyy

      To view them :reg

      Remember you can make "w anything, like "x or "p

      And each time you yank it gets pushed into the default register history "0 "1 "2 etc

  • hakunawazo@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    I like vim and use it almost every day, but sometimes I miss Strg+D and Alt+F3 from Sublime (multi edit). Block select + c isn’t as useful as this.

  • JoYo@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    ive never had to think about clipboard buffers until i used a modal editor.

    now i spend %60 of my time trying to figure out where the copied symbol went.

    • evatronic@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      I don’t have the name handy, but there’s at least one plugin for vim that shows buffer previews in a popup. I’ve got it mapped to leader-sb (for “show buffer”).

      • JoYo@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 months ago

        yah, helix has that in the info bar oob.

        im just not thinking about that when im copying shit, i just want to copy paste like it’s 1999.

  • cybersandwich@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    I can’t tell if ops joke is “intentionally confusing buffers with registers” and everyone is playing along or if people aren’t making the distinction between the two in this thread.

    Which is ironic and humorous…potentially by accident.

    • whats_all_this_then@programming.devOP
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      I’m an idiot and I think I confused the two haha

      My thought process based on when I setup my config: “yank copies to my main ‘buffer’, <leader> yank copies to system clipboard through that special ‘buffer’, and <leader> delete deletes without replacing what’s in my main ‘buffer’. I have multiple clipboards!”

      Completely forgot they’re called registers and that buffers are just “where text is” (at least as far as I understand it)

    • konkonjoja@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      I kind of assumed that his comment was independent of the meme he posted and served more to underline a perceived power that vim has over other editors. In this case a power OP doesn’t even understand/use himself.