zed/assets
Nathan Sobo a515442a36
Rely on model to determine indentation level and always rewrite the full line (#16145)
This PR simplifies our approach to indentation in the inline assistant
in hopes of improving our experience for Python. We tell the model to
generate the correct indentation in the prompt, and always start
generating at the start of the line. This may fall down for less capable
models, but I want to get a solid experience on the best models and then
figure the rest out later.

Also: We now prefer `./assets/prompts` as an overrides directory when
stdout is a PTY, so you can do `cargo run` and then iterate prompts for
the current run inside the current working copy.

cc @trishume @dsp-ant 

Release Notes:

- Zed now allows the model to control indentation when performing inline
transformation. We're hoping this improves the indentation experience in
Python and other indentation-sensitive languages, but it does require
more from the model.

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
2024-08-12 22:41:24 -06:00
..
fonts Fix font selection on macOS (#13615) 2024-06-27 17:02:45 -06:00
icons assistant: Add debug inspector (#16105) 2024-08-12 17:05:54 +02:00
keymaps vim: Support ranges in command (#15985) 2024-08-08 21:47:27 +01:00
prompts Rely on model to determine indentation level and always rewrite the full line (#16145) 2024-08-12 22:41:24 -06:00
settings Use lowercase command names in initial settings files (#15717) 2024-08-03 09:35:09 -04:00
sounds
themes linux: Indicate when the window is focused (#14266) 2024-07-12 14:20:58 -07:00