Live data from Hacker News

Zed now predicts your next edit with Zeta, our new open model

zed.dev

31–40 of 301 posts

Re: Zed now predicts your next edit with Zeta, our new open model

#31

Is there a thing that does this for the terminal? I hate it when I'm fiddling with some complicated command and I have to juggle the flags as well as my personal inputs like paths and such.

If you mean an autocomplete for the terminal, there is https://www.warp.dev/.

Re: Zed now predicts your next edit with Zeta, our new open model

#32
post #28
post #27

Earlier quoted context omitted.

I found https://github.com/zed-industries/zed/blob/2f734cbd5e2452647... which leads me to believe the environment variable ZED_PREDICT_EDITS_URL does control the endpoint.

But is there a setting you can modify after the binary being built? Something like in application settings? Or do you need to build it?

It's an environment variable you can set before starting the program. No need to recompile.

Re: Zed now predicts your next edit with Zeta, our new open model

#33

Personally, before I hit tab to confirm a change, I would want to see the before and after rather than just the after

I believe the after change hovers over the before line. So if you go back to the video, e.g. at 27s in, there's a lightning bolt highlighting which line is going to be changed, then there's a box, with "tab" at the end, above the line, highlighting the change that will be performed :)

Re: Zed now predicts your next edit with Zeta, our new open model

#35
If you were looking for the configuration like I was[1][2]:

  {
    "show_edit_predictions": ,
    "edit_predictions": {
      "disabled_globs": [],
      "mode": 
    },
    "features": {
      "edit_prediction_provider": 
    }
  }

[1]: https://zed.dev/docs/completions

[2]: https://zed.dev/docs/configuring-zed#edit-predictions

Re: Zed now predicts your next edit with Zeta, our new open model

#36
post #30
post #25

Earlier quoted context omitted.

> to indent some code. Why are you manually indenting code? I don't remember ever doing that in IDEA or VS Code for ~~python,~~ java or ts. Edit: I borked about python, my bad.

For example, you have if check_something(): wall_of_text = textwrap.dedent(""" this is a multiline string """.strip("\n")) I hope you agree it's ugly. And you want to make it if check_something(): wall_of_text = textwrap.dedent("""\ this is a multiline string """.strip("\n")) But I don't know any formatter which does this automatically. Because the change here not only changes the looking, it changes semantic. The fo…

Yeah, string """ blocks I also have to do manually. Though that example never interfered with AI autocomplete in my experience.

Re: Zed now predicts your next edit with Zeta, our new open model

#37
post #25
post #3

I tried CoPilot a while and my biggest gripe was tab for accepting the suggestion. I very often got a ton of AI garbage when I was just trying to indent some code. Tab just doesn't seem like the proper interface for something like this.

> to indent some code. Why are you manually indenting code? I don't remember ever doing that in IDEA or VS Code for ~~python,~~ java or ts. Edit: I borked about python, my bad.

Isn't indentation 'non deterministic' in Python? E.g. if I have the following:

    if (foo):
        bar()
    hum()
how can anything other than a human decide if that 3rd line should be indented as it is or by one more level?

Re: Zed now predicts your next edit with Zeta, our new open model

#38
post #25
post #3

I tried CoPilot a while and my biggest gripe was tab for accepting the suggestion. I very often got a ton of AI garbage when I was just trying to indent some code. Tab just doesn't seem like the proper interface for something like this.

> to indent some code. Why are you manually indenting code? I don't remember ever doing that in IDEA or VS Code for ~~python,~~ java or ts. Edit: I borked about python, my bad.

How does the IDEA/VSCode know when you're done with the if?

    if foo:
        bar # Obviously this is indented
        but_is_this() # supposed to be under the if?
        how.about(this) #?
    how.do_you(de) # indent in Python, if not manually?

Re: Zed now predicts your next edit with Zeta, our new open model

#39
The sensitive readers please be advised, quite a bit of a rant and angry reactions coming in an overreacting style, please stop here if you are of the sensitive type. The comments are unrelated to this particular product but aimed at the universal approach of the broad topic nowadays. Zero intent of offending anyone specific person is attempted.

I am fed up with all these predicting what I want to do. Badly!! Don't guess! Wait, and I will do what I want to do. I do not appreciate it from my wife trying to figure out what I want to say in the middle of my senntence and interrupts before I finish what I am saying, imagine how much I tolerate it from a f computer! I know what I am going to do, you do not! Let me do that already! This level of predicting our asses off everywhere grown to be a f nuisance by now, I cannot simply do and focus on what I want to do because of the many distractions and suggestions and guesses and prediction of me and my actions all the f time are in the way' Wait, and see! At this overly eager level and pushing into everything is a nuisance now! Too many times the acceptance of the - wrong - 'helping suggestion' is in the way too, hijacking that usable elsewhere particular keyboard action, breaking my flow, dragging in the unwanted stupid guess! Recovery of my way of working from incoming and pushy "feature" hiding/colliding my usual actions, forced on me in a "security update" or other bullshit, turning off and recover the working practice already been in place and worked is an unwelcom being in the way too, ruined, now colliding with "smart prediction", not helping. In long term, it is not a definitive help but an around zero sum game. Locally, in specific sittuations, too many times it is a strong negative by the wrong done! Too much problems here and there, accuracy and implementation wise. Forced everywhere. Don't be a smartass, you are just an algorithm not a mind reader! Lay back and listen.

If prediction is that smart - being with us since the turn of the millania here and there - then should do my job perfectly and I can go walk outside and collect the money! Until, f off!

Re: Zed now predicts your next edit with Zeta, our new open model

#40
I haven't used Zed much but RustRover seems to have recently switched to a more aggressive/ambitious autocomplete. IIRC tab used to just complete the current word, now it tries to complete the rest of the line. Only it usually gets it wrong. Enter now seems to do what tab used to do and it's been quite annoying having to unlearn tab completing everything.

Maybe Zed's prediction is better (though to be honest I don't really care to find out). But I feel like autocomplete is something where usefulness drops off very quickly as the amount of predicted text increases. The thing is, it really has to be 100% correct, because correcting your mostly-correct auto-generated code seems more tedious and frustrating to me than just typing the correct code in the first place.

Post reply on HN