move to dedicated apply deep dive, to be completed
This commit is contained in:
parent
15e93dd5d0
commit
7d7fe143ec
2 changed files with 16 additions and 7 deletions
16
docs/docs/customize/deep-dives/_apply.md
Normal file
16
docs/docs/customize/deep-dives/_apply.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
description: Learn how to use the Apply feature
|
||||
keywords: [apply, speculative]
|
||||
toc_max_heading_level: 5
|
||||
---
|
||||
|
||||
<!-- This is a work in progress and excluded by prefixing the file name with an underscore -->
|
||||
|
||||
# Apply
|
||||
|
||||
## Instant Diff Apply
|
||||
|
||||
If you have large files (exeeding the output token of your model) the edit apply will delete all lines that exceed the model window. To mitigate you can instead of applying the changes directly, ask the chat LLM to "generate a unified diff".
|
||||
The resulting diff (if the LLM has not made a mistake) can be instantly applied, changing only the lines that need to change.
|
||||
|
||||
Explainer Video: https://youtu.be/b7Xxsot4gyw
|
||||
|
|
@ -35,10 +35,3 @@ You can navigate through each proposed change, accepting or rejecting them using
|
|||
You can also accept or reject all changes at once using <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>enter</kbd> (to accept) or <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>delete/backspace</kbd> (to reject).
|
||||
|
||||
If you want to request a new suggestion for the same highlighted code section, you can use <kbd>cmd/ctrl</kbd> + <kbd>i</kbd> to re-prompt the model.
|
||||
|
||||
## Instant Diff Apply
|
||||
|
||||
If you have large files (exeeding the output token of your model) the edit apply will delete all lines that exceed the model window. To mitigate you can instead of applying the changes directly, ask the chat LLM to "generate a unified diff".
|
||||
The resulting diff (if the LLM has not made a mistake) can be instantly applied, changing only the lines that need to change.
|
||||
|
||||
Explainer Video: https://youtu.be/b7Xxsot4gyw
|
||||
Loading…
Add table
Reference in a new issue