Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
whats_all_this_then ( whats_all_this_then@programming.dev )  to Programmer Humor@programming.dev · 3 years ago

I still don't get buffers

programming.dev

message-square
38
link
fedilink
320

I still don't get buffers

programming.dev

whats_all_this_then ( whats_all_this_then@programming.dev )  to Programmer Humor@programming.dev · 3 years ago
message-square
38
link
fedilink
alert-triangle
You must log in or register to comment.
  • Ephera ( Ephera@lemmy.ml ) 
    link
    fedilink
    arrow-up
    72
    ·
    3 years ago

    Nevermind simply having an OS-level clipboard manager…

    • m-p{3} ( mp3@lemmy.ca ) 
      link
      fedilink
      arrow-up
      37
      ·
      3 years ago

      Win+V works decently enough for me.

      • /home/pineapplelover ( pineapplelover@lemm.ee ) 
        link
        fedilink
        arrow-up
        8
        ·
        3 years 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.

        • Sotuanduso ( Sotuanduso@lemm.ee ) 
          link
          fedilink
          English
          arrow-up
          9
          ·
          3 years 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_then ( whats_all_this_then@programming.dev ) OP
          link
          fedilink
          arrow-up
          8
          ·
          3 years ago

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

      • whats_all_this_then ( whats_all_this_then@programming.dev ) OP
        link
        fedilink
        arrow-up
        1
        ·
        3 years 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

    • Cwilliams ( Cwilliams@beehaw.org ) 
      link
      fedilink
      arrow-up
      5
      ·
      3 years ago

      Or the KDE System tray…

      • Ephera ( Ephera@lemmy.ml ) 
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

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

        • Cwilliams ( Cwilliams@beehaw.org ) 
          link
          fedilink
          arrow-up
          1
          ·
          3 years ago

          Oh, I gotcha now

    • pewpew ( pewpew@feddit.it ) 
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      Windows also has it, but it’s disabled by default for some reason

    • whats_all_this_then ( whats_all_this_then@programming.dev ) OP
      link
      fedilink
      arrow-up
      2
      ·
      3 years 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 ( JoYo@lemmy.ml ) 
    cake
    link
    fedilink
    English
    arrow-up
    25
    ·
    3 years 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 ( evatronic@lemm.ee ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 years 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”).

      • whats_all_this_then ( whats_all_this_then@programming.dev ) OP
        link
        fedilink
        arrow-up
        3
        ·
        3 years ago

        Telescope?

      • JoYo ( JoYo@lemmy.ml ) 
        cake
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years 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.

    • whats_all_this_then ( whats_all_this_then@programming.dev ) OP
      link
      fedilink
      arrow-up
      4
      ·
      3 years 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

    • unhinge ( unhinge@programming.dev ) deleted by creator
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      You can see all registers in use with :registers, to paste from a register say "2 in insert mode use key combination 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. ↩︎

  • Štěpán ( stepan@lemmy.cafe ) 
    link
    fedilink
    English
    arrow-up
    14
    ·
    3 years ago

    Same thing but reversed with multiple cursors :/

    • whats_all_this_then ( whats_all_this_then@programming.dev ) OP
      link
      fedilink
      arrow-up
      6
      ·
      3 years ago

      That’s actually the biggest thing I miss about VSCode

      • chihiro ( chihiro@lemmy.kya.moe ) 
        link
        fedilink
        arrow-up
        7
        ·
        3 years 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.

        • whats_all_this_then ( whats_all_this_then@programming.dev ) OP
          link
          fedilink
          arrow-up
          2
          ·
          3 years ago

          I’m gonma bookmark and try this next time I find the courage to mess around my nvim config. That last none_ls breaking change has made me very hesitant to mess around with things that aren’t just colorschemes ngl.

        • Štěpán ( stepan@lemmy.cafe ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 years ago

          I also tried https://github.com/smoka7/multicursors.nvim and the experience was horrible. Then I tried https://github.com/brenton-leighton/multiple-cursors.nvim and I absolutely love it. It has conflict with cmp, but the README has great tutorial on disabling cmp only when using multiple cursors, and dealing with other plugins to maks them work or disable them in the multicursor mode.

      • JoYo ( JoYo@lemmy.ml ) 
        cake
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 years ago

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

        • whats_all_this_then ( whats_all_this_then@programming.dev ) OP
          link
          fedilink
          arrow-up
          1
          ·
          3 years ago

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

      • Sotuanduso ( Sotuanduso@lemm.ee ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 years ago

        Same here, but Atom. Maybe I should start using Atom again.

        • thanatotus ( thanatotus@lemmy.ml ) 
          link
          fedilink
          arrow-up
          3
          ·
          3 years ago

          FYI atom project is dead. There is a community form available but it was to buggy for me.

          • Sotuanduso ( Sotuanduso@lemm.ee ) 
            link
            fedilink
            English
            arrow-up
            3
            ·
            3 years ago

            I know it’s dead. I still have it, and it still does all I want from an IDE.

      • pfannkuchen_gesicht ( pfannkuchen_gesicht@feddit.de ) 
        link
        fedilink
        arrow-up
        2
        ·
        3 years ago

        huh?

  • amphetaminisiert ( amphetaminisiert@feddit.nl ) 
    link
    fedilink
    arrow-up
    12
    ·
    3 years ago

    And I still don’t really know how to use registers in vim 😂 I just use yy and paste 🥲

  • pewgar_seemsimandroid ( pewgar_seemsimandroid@lemmy.blahaj.zone ) 
    link
    fedilink
    arrow-up
    10
    ·
    3 years ago

    any emacs elitists here?

    • JoYo ( JoYo@lemmy.ml ) 
      cake
      link
      fedilink
      English
      arrow-up
      10
      ·
      3 years ago

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

    • whats_all_this_then ( whats_all_this_then@programming.dev ) OP
      link
      fedilink
      arrow-up
      4
      ·
      3 years 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

      • pewgar_seemsimandroid ( pewgar_seemsimandroid@lemmy.blahaj.zone ) 
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        just get QT browser and search it with any search engine

    • sping ( sping@lemmy.sdf.org ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years 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.

    • TheOakTree ( TheOakTree@beehaw.org ) 
      link
      fedilink
      arrow-up
      2
      ·
      3 years 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.

    • Baleine ( Baleine@jlai.lu ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      We be rocking that kill ring !

    • Hexarei ( Hexarei@programming.dev ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years 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 😉

  • DavidP ( DavidP@midwest.social ) 
    link
    fedilink
    arrow-up
    4
    ·
    3 years 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.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 446 users / day
  • 2.36K users / week
  • 5.28K users / month
  • 8.26K users / 6 months
  • 465 local subscribers
  • 34.1K subscribers
  • 1.65K Posts
  • 27.2K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code