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.
I’m probably a freak, but I can’t stand working on something complex, being pulled away from it for a week or two, and not being able to pick things back up because it’s not documented well. Especially when I’m the only person to blame.
I also make scripts and programs with the goal to hand them off when I’m done. I’ve got more than enough to keep me busy at work without having to be the only person able to support my projects forevermore. Ultimately I’m still the go to, but I never want to be so critical that I can’t take time off, or that I’m effectively on call 24/7. I want the credit, but the whole point is to reduce responsibility by making shit more efficient and easy.
Obviously you do you and you do not owe anyone anything (least of all your employer).
However, something does not sit well with me about the fact that we’ve created a system where the most driven and ambitious people are removed from the production process as quickly as possible.
Yes. I have worked in a financial company and a lot of teams in that particular company were structured with 2 or 3 Americans with no skills other than exposure to internal company info, the kind of stuff that should just be written down in a wiki somewhere. And when real work needs to be done they (metaphorically of course) drag an Indian contractor out of a cage who actually knows what’s going on and how to do anything. And they do it with disdain as if being a contributing member of society is a bad thing.
Just being in a meeting with some of these teams made me feel like I was a Harkonnen from Dune.
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.
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.
I was lucky enough to get in on my company’s beta test for copilot.
When I hear people say it’s bad, all that tells me is that they are either completely ignorant and have never really used it, or they aren’t good at learning how to use new tools.
The example shown is setting a timer, then copilot suggests timeright value.
Contextually, it is bad autocomplete.
In practice, chatgpt4 is incapable of producing code to my coding standards. Edit: to clarify, its incapable of doing that in a timely enough manner that it saves me any time.
The example shown was specifically selected because it's funny, not because it's representative.
The fact that you called the tool "chatgpt4" suggests you're not experienced with copilot. They're not the same thing even if they're using similar LLMs as a component.
That paragraph is on its own because it is a different topic. In this case I was using my own experience experimenting with chatgpt4 as to why I won't be using it any time soon.
That’s what I need most of the time, though. I don’t see these AI things as replacing programmers or writing large chunks of code. I just see them as an improvement over the autocompletion/IntelliSense features we’re all using already.
I am just making fun of all those AI doomsayers on Reddit. It’s nowhere close enough to be even called such. It’s just a mindless algorithm, a tool. Math operation. Are calculators smart? Well yes from a certain point of view.
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.
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?
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).
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.
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.
I also tried github.com/smoka7/multicursors.nvim and the experience was horrible. Then I tried github.com/…/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.
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?
programmer_humor
Active
This magazine is from a federated server and may be incomplete. Browse more on the original instance.