Spyke

So choose wisely. All other editor instances must remain open forever.

15
lemmy.eco.br

I use quake style terminals, and often start writing a file and completely forget about it and turn off the computer, and only remember what i left behind when i find the random recovery files around, so :w a lot is quite useful for me.

9
kender242reply
lemmy.world

Quake? The FPS? I'm confused, though I knew a little about Linux

5
lemmy.eco.br

Yes, on classic fps you could spaw a console that will drop down from the top os the screen, some terminal emulators allow you to do that.

I like it because then i have the terminal always open that i just draw from the top of the screen with a keypress

On KDE i do that with Yakuake, and on gnome with tilix

9

You can also use Guake on GNOME or basically on any desktop. I've also use it on Cinnamon and it's really nice.

1
SorryQuickreply
lemmy.ca

Is there any reason to use :w other than it being the default? I have mine mapped to CTRL-S and it makes sure to keep me in insert mode if I was in insert mode. Feels way faster and easier to spam than the 4 key presses it takes to execute “:w”.

2
lemmy.world


This will allow you to ctrl+s to save. I tried to add this in a backtick code line/block but it removes part of the syntax.

1
lemmy.world

It'd be great if there were side kind of feedback, like the cursor quickly flashing a "C" or something... anything to let you know the operation occurred; better yet, was successful.

4

I actually disagree from a systems engineer perspective: The program doesn’t actually know shit if those bits hit any permanent medium, just that the OS told them “I’ll take care of it” it could be sitting in a write back cache when you save, see the “write complete” and rip the power and that’s all gone now. Basically, I don’t like promising durability when it’s not really there.

4

The old school programmer right here! All we’re missing is someone typing git commit -am “updates and stuff”

2

Basically a Jackie Chan fight scene, complete with somebody rolling a carriage at him and him kicking it back to pin them against the wall

1

When you do this using Word online it be like “chill dude we autosave here, we got you” and I’m like “brother I do not trust you”.

21
lemy.lol

We can optimize this further:

unsatisfied = true
while(unsatisfied) {
    key.dispatch(
        Keyboard::Ctrl,
        Keyboard::s
    )
}

..No, there is no instance where unsatisfied changes state

21

Don't worry, most modern brains have a builtin jit compiler, so when a habit starts to form, the check will be optimised out. (It saves excess neurons from being generated.)

4
Vlynreply
lemmy.zip

Ctrl + C literally doesn't work at times, it drives me crazy. It might be due to some shitty applications and websites overriding it or adding complexity (Like copying not only the text but additional information).

I'm often 100% sure I copied the text, change the window and an old clipboard entry gets pasted.

10
lemmy.world

God I hate this so much. It's especially frustrating on mobile where it takes like thirty seconds to try to get the right part of the text copied and use the fucking magnified blue dots... Ugh.

8

Mobile is an entirely different beast. Like sometimes my keyboard doesn't show up. Or the text select refuses to work. And so on. It's a mess. Even on a Galaxy S22.

No clue how people can exist without a proper computer at home and still do stuff online.

4
sh.itjust.works

It saves all files that are changed rather than just the current one you have open.

9
lemm.ee

I've never had to think about that with Intellij IDEA. It just works!

10
ludreply

I still click Ctrl S occasionally when using pycharm. It's the law.

3
feddit.de

I just can't stand Kate showing me a little orange bar meaning I have not saved the changes yet. The bar must be green! I am a slave to the green bar. The white dot in vscode (I use an open source build) is a bit more tolerable, but whenever I notice it I HAVE to save the file.

10

Ctrl+s means "stop the presses" to VT100 terminal emulators and you have to press ctrl+q to resume. Key combinations from a different era.

10
lemmy.ml

MFRs are saving each keystroke they have access to.

8

you CTRL+C CTRL+C CTRL+C CTRL+C CTRL+C

I CTRL+X CTRL+V we are not the same.

8
feddit.de

This is me in eclipse.

Because I used to do the single save and it failed

8
normalexitreply
lemmy.world

Oh, eclipse. I'm still happy I don't have to save in intellij .

6

I hate editors that cut the current line if you do C-x with nothing selected. Always do C-x C-s, even in VSCode and KDevelop.

3

But then, if you’re forced to develop on microsoft 🤬, it’s late, you’re tired, you’re hand slides just a little to the right (win + d), aaaaand everything is gone, and you’re sitting there looking at you’re background wondering what the hell just happened 🙃.

5
chingaderareply
lemmy.world

Dude, win + d fucks, and it fucks hard. Just press it again if you can't handle

6

Yeah but at 4am in the morning, it tends to take me a couple of seconds to realise what the hell just happened . It gets me every time.

1

I’m the same way. I think it’s just a matter of being conditioned to manually save for the majority of my computing life.

4
local106.com

Ok here's a question I should have asked like way sooner.

In Ubuntu (and similar distros), is there a hotkey to immediately kill the process? Like CTRL-C but harsher.

3

If you’re using X11, you can use xkill: https://en.m.wikipedia.org/wiki/Xkill

You can bind it to a key in gnome/kde (not sure how they handle custom keybinds. Otherwise add a call to xbindkeys to your .bashrc or equivalent). It kills any window you want, responsive or not.

As for the terminal, I don’t think you can send SIGKILL, but ctrl + \ will result in a core dump if you’re using bash.

4

I was never really aware I did this until I had to program something with hot reloading (I don't remember what) and it was so insufferable...

And now my pain is with rustfmt. Just because I saved before filling in the struct fields does not mean I want you to format the struct accordingly!!!

2

Auto-saving is the insurance against manually saving failing, which is the insurance against the computer or program failing.

It's insurances all the way down, yet I'm still let down when versioning overwrites my changes.

2

Intellij being a good guy amd autosaving every few seconds. No more worrying about crtl+s.

2

Meanwhile, me over here with the self-doubt slamming ctrl-z

1

Except the autosave in BBEdit. I trust that with my life. It’s never lost ANYTHING in 30 years.

1
Beaniereply
programming.dev

Actually vim has swap files which it saves to when you make any edit, whether you save the change or not, meaning you shouldn't lose any work even if you kill -9 vim on unsaved work.

5
knexcarreply
lemmy.world

First of all, it’s fine to write code on Windows. In fact, many companies have windows-only development workflows.

Second of all, many Linux programs also use standard shortcuts like Ctrl+S. Linux is more than Vim.

14

There's no Visual Studio for Linux, so yeah.. especially as a .NET dev.

Visual Studio Code isn't the same.

6
lemmy.one

Tell me you use Windows without telling me you use Windows.

Meanwhile I just reboot my Mac without bothering to save anything and everything just restores as it was, even new documents that were never saved. It works so well I don’t even think about it anymore.

-8

You're pretty brave! That doesn't always work.

Source: have used a MacBook Pro for work for 7 years now.

9

Maybe these days. That definitely was not true when I was growing up, or even a decade ago.

7

You must have been born before they were beige that eventually turned yellow and brown.

6