Skip to content

Commit

Permalink
Consolidate the pass rule (#146)
Browse files Browse the repository at this point in the history
Co-authored-by: Colton Loftus <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 11, 2024
1 parent 3374bba commit 108f144
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions GPT/gpt.talon
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
{user.model} <user.modelPrompt> [{user.modelSource}] [{user.modelDestination}]$:
user.gpt_apply_prompt(modelPrompt, modelSource or "", modelDestination or "")

# Passes a model source to a model destination unchanged
{user.model} pass {user.modelSource} [{user.modelDestination}]$:
user.gpt_pass(modelSource, modelDestination or "")

# Pastes the model destination at the cursor position
{user.model} pass {user.modelDestination}$: user.gpt_pass("", modelDestination)
# Passes a model source to a model destination unchanged.
# If the source is omitted, default to selected text; If the destination is omitted default to paste
{user.model} pass ({user.modelSource} | {user.modelDestination} | {user.modelSource} {user.modelDestination})$:
user.gpt_pass(modelSource or "", modelDestination or "")

# Select the last GPT response so you can edit it further
{user.model} take response: user.gpt_select_last()
Expand Down

0 comments on commit 108f144

Please sign in to comment.