News for hackers. Stuff that matters.
Re:Zed now predicts your next edit with Zeta, our new open m... by ljm on Friday February 14, 2025 @04:12AM (#43046428)
I actually wish more editors had emacs style indenting where hitting tab anywhere on the line would re-indent it or otherwise cycle through indent levels if it was unclear, especially because you’re unlikely to get copilot suggestions in the middle of a word. Plus, it doesn’t break if there’s a syntax error elsewhere in the file.
Re:Zed now predicts your next edit with Zeta, our new open m... by fhd2 on Friday February 14, 2025 @05:05AM (#43046799)
It's one of those weird Emacs things that you get _so_ used to that everything else seems to waste your time.

Using code formatters and formatting on save or with a shortcut is OK, but not really the same to me.

That's probably why I'm stuck with Emacs:

1. No need to use the mouse.

2. Extremely efficient keyboard usage (maybe not the most efficient, but compared with common IDEs, certainly).

Makes it feel like I'm actually using a brain computer interface. The somewhat regular yak shaving is a bit of a bummer though. I like that I can modify everything to be exactly how I like it, but I wouldn't mind sensible defaults. Haven't found a distribution yet that works well without tinkering.

Re:Zed now predicts your next edit with Zeta, our new open m... by ljm on Friday February 14, 2025 @07:00AM (#43047504)
Exactly, and sometimes I don't want to save a file just for indentation to happen as a side-effect, especially if I can do `C-x H TAB` to correctly re-indent the entire thing.

That's particularly more helpful when some formatters will actually rewrite your code to either break lines up or squish things back into a one-liner.

Re:Zed now predicts your next edit with Zeta, our new open m... by boxed on Friday February 14, 2025 @07:05AM (#43047531)
Oh, didn't know about that. That makes a lot of sense. Reminds me of how hitting cmd+c on a line in PyCharm copies the entire line if there is no selection. Because what else would make sense?
Re:Zed now predicts your next edit with Zeta, our new open m... by yencabulator on Friday February 14, 2025 @11:48AM (#43050303)
I thought that was a great feature. Now I'm writing mostly languages with well-defined formatting rules and simply never need tab. This is even better.