zed/docs/src/assistant
Tristan Marechaux 2364804f17
assistant: Implement /selection slash command (#19988)
- Closes #18868

## Summary
This PR introduces a new slash command `/selection` to enhance the
usability of the assistant's quote selection feature.

## Changes Made
1. Extracted a function from the `assistant: quote selection` action to
find the selected text and format it as an assistant section.
2. Created a new slash command `/selection` that utilizes the extracted
function to achieve the same effect as the existing `assistant: quote
selection` action.
3. Updated the documentation to include information about the new
`/selection` slash command.


Release Notes:

- Moved the text selection action to a slash command (`/selection`) in
the assistant panel

---------

Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
2024-11-05 18:42:10 +01:00
..
assistant-panel.md docs: Add copywriting and design tweaks (#17514) 2024-09-06 15:57:14 -03:00
assistant.md docs: Remove context servers documentation (#16560) 2024-08-20 21:12:12 -04:00
commands.md assistant: Implement /selection slash command (#19988) 2024-11-05 18:42:10 +01:00
configuration.md Switch to Anthropic -latest tags (#19615) 2024-10-23 15:13:52 -04:00
contexts.md docs: Update correct locations for Assistant contexts (#17049) 2024-08-28 21:24:51 -07:00
inline-assistant.md Expand assistant docs (#16501) 2024-08-19 23:50:09 -04:00
prompting.md Require /file or /tab when using Suggest Edits (#19960) 2024-10-30 11:38:43 -04:00