Skip to content

Commit

Permalink
clean up repo and fix up grammar based on pokey's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Jun 30, 2024
1 parent 083f7fb commit 0825532
Show file tree
Hide file tree
Showing 16 changed files with 69 additions and 360 deletions.
15 changes: 1 addition & 14 deletions GPT/beta-commands/beta-cursorless.talon
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,4 @@ model blend to <user.cursorless_target>:
model blend <user.cursorless_target>:
target_text = user.cursorless_get_text_list(cursorless_target)
result = user.gpt_blend_list(target_text, edit.selected_text())
user.paste(result)

on <user.cursorless_target> [responding {user.modelResponseMethod}] model (<user.modelPrompt> | please <user.text>):
source_text = user.cursorless_get_text_list(cursorless_target)
result = user.gpt_apply_prompt(modelPrompt or text, source_text)
default_destination = user.cursorless_create_destination(cursorless_target)
user.gpt_insert_response(result, modelResponseMethod or "", default_destination)

on <user.cursorless_target> responding at <user.cursorless_target> model (<user.modelPrompt> | please <user.text>):
source_text = user.cursorless_get_text_list(cursorless_target_1)
result = user.gpt_apply_prompt(modelPrompt or text, source_text)
destination_text = user.cursorless_get_text(cursorless_target_2)
default_destination = user.cursorless_create_destination(cursorless_target_2)
user.cursorless_insert(default_destination, result)
user.paste(result)
8 changes: 1 addition & 7 deletions GPT/beta-commands/beta-gpt.talon
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ mode: command
tag: user.gpt_beta
-

# By reversing the order to be source, adverb, action,
# we can place user.text at the end and get better recognition and easier chaining
[on {user.modelTextSource}] [responding {user.modelResponseMethod}] model (<user.modelPrompt> | please <user.text>):
source_text = user.gpt_get_source_text(modelTextSource or "")
result = user.gpt_apply_prompt(modelPrompt or text, source_text)
user.gpt_insert_response(result, modelResponseMethod or "")

# Find all Talon commands that match the user's text
model find <user.text>: user.gpt_find_talon_commands(user.text)

# Using the context of the text on the clipboard, update the selected text
model blend [from] clip:
model blend clipboard:
clipboard_text = clip.text()
destination_text = edit.selected_text()
result = user.gpt_blend(clipboard_text, destination_text)
Expand Down

This file was deleted.

112 changes: 0 additions & 112 deletions GPT/beta-commands/function-calling/gpt-function-calling.py

This file was deleted.

15 changes: 0 additions & 15 deletions GPT/beta-commands/function-calling/gpt-function-calling.talon

This file was deleted.

113 changes: 0 additions & 113 deletions GPT/beta-commands/function-calling/gpt_callables.py

This file was deleted.

3 changes: 0 additions & 3 deletions GPT/beta-commands/function-calling/readme.md

This file was deleted.

11 changes: 0 additions & 11 deletions GPT/gpt-cursorless.talon

This file was deleted.

Loading

0 comments on commit 0825532

Please sign in to comment.