From 2995830d85784fcf92f7f17d31bc99bc1b674261 Mon Sep 17 00:00:00 2001 From: Schwa Aresty Date: Thu, 25 Jul 2024 10:03:16 -0700 Subject: [PATCH] Experimenting with new snippet prompt (#105) --- GPT/gpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT/gpt.py b/GPT/gpt.py index dc533baf..41dc77bf 100644 --- a/GPT/gpt.py +++ b/GPT/gpt.py @@ -161,7 +161,7 @@ def gpt_apply_prompt( # Apply modifiers to prompt before handling special cases match modifier: case "snip": - prompt += "\n\nPlease return the response as a textmate snippet for insertion into an editor with placeholders that the user should edit. Return just the snippet content - no XML and no heading." + prompt += "\n\nPlease return the response as a snippet with placeholders. A snippet can control cursors and text insertion using constructs like tabstops ($1, $2, etc., with $0 as the final position). Linked tabstops update together. Placeholders, such as ${1:foo}, allow easy changes and can be nested (${1:another ${2:placeholder}}). Choices, using ${1|one,two,three|}, prompt user selection." # Ask is a special case, where the text to process is the prompted question, not the selected text if prompt.startswith("ask"):