From 7d7fe143ec9b7148cff6b383016b2baf3eb09e29 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 8 Mar 2025 08:59:40 -0800 Subject: [PATCH] move to dedicated apply deep dive, to be completed --- docs/docs/customize/deep-dives/_apply.md | 16 ++++++++++++++++ docs/docs/edit/how-to-use-it.md | 7 ------- 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 docs/docs/customize/deep-dives/_apply.md diff --git a/docs/docs/customize/deep-dives/_apply.md b/docs/docs/customize/deep-dives/_apply.md new file mode 100644 index 000000000..1f87a1993 --- /dev/null +++ b/docs/docs/customize/deep-dives/_apply.md @@ -0,0 +1,16 @@ +--- +description: Learn how to use the Apply feature +keywords: [apply, speculative] +toc_max_heading_level: 5 +--- + + + +# 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 diff --git a/docs/docs/edit/how-to-use-it.md b/docs/docs/edit/how-to-use-it.md index 19f8e0ccd..850c34b60 100644 --- a/docs/docs/edit/how-to-use-it.md +++ b/docs/docs/edit/how-to-use-it.md @@ -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 cmd/ctrl + shift + enter (to accept) or cmd/ctrl + shift + delete/backspace (to reject). If you want to request a new suggestion for the same highlighted code section, you can use cmd/ctrl + i 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 \ No newline at end of file