ZIm/crates/assistant/src
Bennet Bo Fenner feea607bac
Indent guides (#11503)
Builds on top of existing work from #2249, but here's a showcase:


https://github.com/zed-industries/zed/assets/53836821/4b346965-6654-496c-b379-75425d9b493f

TODO:
- [x] handle line wrapping
- [x] implement handling in multibuffer (crashes currently)
- [x] add configuration option
- [x] new theme properties? What colors to use?
- [x] Possibly support indents with different colors or background
colors
- [x] investigate edge cases (e.g. indent guides and folds continue on
empty lines even if the next indent is different)
- [x] add more tests (also test `find_active_indent_index`)
- [x] docs (will do in a follow up PR)
- [x] benchmark performance impact

Release Notes:

- Added indent guides
([#5373](https://github.com/zed-industries/zed/issues/5373))

---------

Co-authored-by: Nate Butler <1714999+iamnbutler@users.noreply.github.com>
Co-authored-by: Remco <djsmits12@gmail.com>
2024-05-23 15:50:59 +02:00
..
ambient_context Add slash commands for adding context into the assistant (#12102) 2024-05-22 14:06:28 -07:00
completion_provider Fix: Missing token count for GPT-4o model. (bumps tiktoken-rs to v0.5.9) (#11893) 2024-05-16 13:09:28 +02:00
prompts Prompt library updates (#11988) 2024-05-22 18:04:47 -04:00
slash_command Prompt library updates (#11988) 2024-05-22 18:04:47 -04:00
system_prompts Allow the assistant to suggest edits to files in the project (#11993) 2024-05-17 15:38:14 -07:00
ambient_context.rs Allow the assistant to suggest edits to files in the project (#11993) 2024-05-17 15:38:14 -07:00
assistant.rs Write a randomized test and fix bugs in the logic for omitting slash commands from completion requests (#12164) 2024-05-22 15:20:55 -07:00
assistant_panel.rs Indent guides (#11503) 2024-05-23 15:50:59 +02:00
assistant_settings.rs Add a send button to the assistant (#12171) 2024-05-22 19:17:28 -06:00
codegen.rs Report response latency and errors when using (inline) assistant (#11806) 2024-05-14 18:18:26 +02:00
completion_provider.rs Add slash commands for adding context into the assistant (#12102) 2024-05-22 14:06:28 -07:00
omit_ranges.rs Write a randomized test and fix bugs in the logic for omitting slash commands from completion requests (#12164) 2024-05-22 15:20:55 -07:00
prompts.rs Prompt library updates (#11988) 2024-05-22 18:04:47 -04:00
saved_conversation.rs assistant2: Add new conversation button, that also saves the current conversation (#11522) 2024-05-07 18:16:48 -04:00
search.rs Fuzzy-match lines when applying edits from the assistant (#12056) 2024-05-20 17:02:15 +02:00
slash_command.rs Add slash commands for adding context into the assistant (#12102) 2024-05-22 14:06:28 -07:00
streaming_diff.rs Allow AI interactions to be proxied through Zed's server so you don't need an API key (#7367) 2024-03-19 19:22:26 +01:00