• Ephera
    link
    fedilink
    1211 month ago

    Nevermind simply having an OS-level clipboard manager…

        • @whats_all_this_thenOP
          link
          131 month ago

          Global clipboard is chef’s kiss. Back when I was on Ubuntu/Gnome, I had to install CopyQ but having one come with the OS is great

      • /home/pineapplelover
        link
        fedilink
        81 month ago

        I think windows+v syncs to microsoft servers or something. I remember when I was running chris titus tech’s debloat script it removed that functionality.

        • @[email protected]
          link
          fedilink
          English
          101 month ago

          I googled it, there is an option to sync it to your Microsoft account, but I can’t say whether that’s on by default when you turn on clipboard history because I skipped adding a Microsoft account. But if it is, you can turn it off in Settings -> System -> Clipboard.

        • @whats_all_this_thenOP
          link
          81 month ago

          Holy crap I think that may be why I never used it. Fuck how much Windows likes to calls home

        • @[email protected]
          link
          fedilink
          11 month ago

          An excellent option to have when one of the major use cases for clipboards is as an intermediary for password managers.

          I hope they eventually get sued into the fucking ground.

          • @[email protected]
            link
            fedilink
            11 month ago

            Password managers should mark their clipboard data as sensitive and clean it up. Use a proper password manager and there won’t be issues.

      • @whats_all_this_thenOP
        link
        11 month ago

        I’m don’t know why but I’ve never used windows clipboard manager, which is weird because I go out of my way to make sure I have one when I’m on linux

    • MrScottyTay
      link
      fedilink
      English
      181 month ago

      There is for windows, and it’s further improved if you get power toys too

      • riot
        link
        fedilink
        11 month 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
          link
          fedilink
          English
          11 month 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
            link
            fedilink
            11 month ago

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

            • MrScottyTay
              link
              fedilink
              English
              11 month ago

              I’ve probably completely misremembered it and maybe learned of it the same time i learned about and installed powertoys. My bad.

    • @[email protected]
      link
      fedilink
      171 month ago

      Application specific buffers are the first thing I disable on emacs. The OS one isn’t just integrated with every other normal piece of software, it’s also more powerful and easier to use.

      … at least on my Linux, YMMV.

    • @whats_all_this_thenOP
      link
      31 month ago

      Nah that’d be too intuitive

      In all seriousness though, I kinda appreciate moving things around in my editor without losing that one snipet I copied for later

  • JoYo
    link
    fedilink
    English
    401 month 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.

    • @[email protected]
      link
      fedilink
      English
      81 month 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
        link
        fedilink
        English
        11 month 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.

    • unhinge
      link
      71 month ago

      You can see all registers in use with :registers, to paste from a register say "2 in insert mode use key combination <ctrl-r>2 or in normal mode "2p. You can check out more in :help registers. Unnamed register or "" is the system clipboard I think. To copy texts in a register you can prepend yank (/delete/cut, etc.) with that register "_ (for black hole register[1]) This is for neovim. Have keybinds for them and there saved you a plugin :D


      1. Text yanked in this register is gone, i.e. it’s not saved in any register. ↩︎

    • @whats_all_this_thenOP
      link
      61 month ago

      So far I haven’t been brave enough for that feature. It’s either “that main place yank goes”, “system clipboard”, or “that place that makes it disappear” for me

    • JoYo
      link
      fedilink
      English
      191 month ago

      then theyre all ignored by x-clip

      xD

      • @[email protected]
        link
        fedilink
        English
        26
        edit-2
        1 month 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.

        • @[email protected]
          link
          fedilink
          English
          31 month ago

          In modern desktops, the primary selection is overwritten every time you select some text

          ( °O°)
          You just opened a whole new world for me, it works in Wayland too

        • @whats_all_this_thenOP
          link
          21 month ago

          Okay I had no.idea. So on Plasma, I’m guessing when I copy anything, it’s writing it both the primary selection, and the clipboard selection and that’s how it stays in the clipboard manager thingy?

          • @[email protected]
            link
            fedilink
            English
            11 month ago

            Not exactly. When you select a text and copy it, the two selections will end up containing the same text, but you can write to either selection without affecing the other by using an API, e.g. a website’s “copy to clipboard” button, or xclip/wl-copy.

            Clipboard managers with a history feature are an altogether different layer on top of the standard selections. Plasma’s clipboard manager only cares about the clipboard selection, and even then, there are exceptions (e.g. copying a password for KeepassXC doesn’t save it in the history).

  • @[email protected]
    link
    fedilink
    331 month 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_thenOP
      link
      61 month 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)

    • @[email protected]
      link
      fedilink
      21 month 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.

  • @[email protected]
    link
    fedilink
    291 month ago

    Y’all haven’t heard of Windows clipboard history? Windows + V will change your life, I tell ya!

      • capital
        link
        fedilink
        141 month ago

        You use it once, it asks if you want to enable, and you click literally one button.

      • @suy
        link
        81 month 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.

        • @[email protected]
          link
          fedilink
          61 month 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
            link
            31 month 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.

            • @[email protected]
              link
              fedilink
              31 month 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.

    • Psaldorn
      link
      fedilink
      29
      edit-2
      1 month 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

      • @suy
        link
        41 month ago

        They are. Registers are just “named boxes” where you can store some text and/or keystrokes. When yanking and pasting, the unnamed register is used if you don’t specify a name (you can still see or edit it explicitly). For recording a macro there is no default register, though. You need to give it a name.

      • @[email protected]
        link
        fedilink
        91 month ago

        https://github.com/mg979/vim-visual-multi

        I also missed multiple courses, but I started using vim-visual-multi in my nvim config and it’s been great. There’s a few others I tried that I couldn’t get to work quite right (usually some weird conflict with nvim-cmp) but I’ve had the best success with vim-visual-multi.

      • JoYo
        link
        fedilink
        English
        81 month ago

        helix has a pretty good mc system in the select mode.

          • JoYo
            link
            fedilink
            English
            3
            edit-2
            1 month ago

            yah ive been swapping to hx wherever i need to do refactoring, it’s too good to miss out.

            space-r ename symbol for easymode.

          • @whats_all_this_thenOP
            link
            11 month ago

            This feels like something I also do in neovim unless I’m misunderstanding you completely. Is it highlighting text and having yoir search apply just to the highlighted text?

            If so, yes it’s great whenever you use it

        • @whats_all_this_thenOP
          link
          11 month ago

          I’ve been meaning to check helix out for a while now but haven’t found the time :(

    • JoYo
      link
      fedilink
      English
      12
      edit-2
      1 month ago

      they have no use for copy buffers, they are still configuring emacs.

    • @whats_all_this_thenOP
      link
      71 month ago

      Obligatory boo and/or hiss

      I’ve also been meaning to give emacs a try but haven’t found the time or energy to figure out how to exit vim

    • @[email protected]
      link
      fedilink
      2
      edit-2
      1 month ago

      I had to learn emacs for my engineering computation class, up to the point that we were required to present our code in emacs if we had questions to ask during office hours.

      I got quite used to it by the end of that course.

    • @[email protected]
      link
      fedilink
      English
      21 month ago

      I’m just an emacs … enjoyer (…?) and I just don’t understand the post. I’m pretty sure buffers here refer to something different from emacs buffers as they’re completely unrelated to clipboards. Then from a quick scan of the plug-in mentioned it seems to mimic the clipboard ring emacs has had for many decades (always?).

      Basically I have no idea what’s going on here.

    • @Hexarei
      link
      01 month ago

      What would an operating system need yank registers for? Maybe if you get a good text editor to go with it, like Evil Mode 😉

    • unhinge
      link
      51 month ago

      I think you mean registers not buffers. buffers are file(s) loaded in memory while registers contain text yanked/deleted/last command/last search, etc.

    • @whats_all_this_thenOP
      link
      31 month ago

      Do you yank to places outside the regular target when you create macros?

      • @[email protected]
        link
        fedilink
        31 month ago

        What do you mean by regular target? I am either yanking from the OS buffer or yanking things from 2 different buffers. Or I have 2 macros where they yank from different buffers.

    • @[email protected]
      link
      fedilink
      11 month ago

      What’s annoying about them is that there isn’t a simple way to clear a register which means you have to use both “r and “R in macros.

  • @[email protected]
    link
    fedilink
    61 month 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.

  • @[email protected]
    link
    fedilink
    41 month 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.

    • @owsei
      link
      31 month ago

      the vim-visual-multi plugin tries to do this. It takes some time to get the hang of it, but, even if using only the simplest features, it’s way better than not having the option.

    • Victor
      link
      fedilink
      11 month ago

      Give the Kakoune editor a try for native multi cursor editing. Or better yet, if you are a developer, the Helix editor.

      I’m a web developer and transitioned quite seamlessly to the Helix editor from Visual Studio Code without much hassle.

      The Helix editor is growing and gaining new functionality all the time.