Skip to content

Commit

Permalink
Merge branch 'main' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus authored Jan 13, 2025
2 parents 0355986 + bcba9a9 commit 2b3ced9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .docs/src/content/docs/reference/gpt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import FetchedData from "../../../components/FetchedData.astro";

GPT commands make requests to an LLM endpoint. In our grammar, each GPT command is prefixed with the word `model`. A model command has 4 parts

- `model`
- A prompt name
- A source _(optional; defaults to selected text)_
- A destination _(optional; defaults to paste)_
- `model`
- A prompt name
- A source _(optional; defaults to selected text)_
- A destination _(optional; defaults to paste)_

You can mix and match any combination of prompt, source, and destination.

Expand Down
15 changes: 8 additions & 7 deletions copilot/copilot.talon
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ pilot nope: user.vscode("editor.action.inlineSuggest.undo")
pilot cancel: user.vscode("editor.action.inlineSuggest.hide")
pilot block last: user.vscode("workbench.action.chat.previousCodeBlock")
pilot block next: user.vscode("workbench.action.chat.nextCodeBlock")
pilot new file <user.ordinal_or_last>:
user.copilot_focus_code_block(ordinal_or_last)
pilot new file <user.cursorless_ordinal_or_last>:
user.copilot_focus_code_block(cursorless_ordinal_or_last)
user.vscode("workbench.action.chat.insertIntoNewFile")
pilot copy <user.ordinal_or_last>:
user.copilot_focus_code_block(ordinal_or_last)
pilot copy <user.cursorless_ordinal_or_last>:
user.copilot_focus_code_block(cursorless_ordinal_or_last)
edit.copy()
pilot bring <user.ordinal_or_last>: user.copilot_bring_code_block(ordinal_or_last)
pilot bring <user.ordinal_or_last> {user.makeshift_destination} <user.cursorless_target>:
pilot bring <user.cursorless_ordinal_or_last>:
user.copilot_bring_code_block(cursorless_ordinal_or_last)
pilot bring <user.cursorless_ordinal_or_last> {user.makeshift_destination} <user.cursorless_target>:
user.cursorless_command(makeshift_destination, cursorless_target)
user.copilot_bring_code_block(ordinal_or_last)
user.copilot_bring_code_block(cursorless_ordinal_or_last)
pilot chat [<user.prose>]$: user.copilot_chat(prose or "")
pilot {user.copilot_slash_command} <user.cursorless_target> [to <user.prose>]$:
user.cursorless_command("setSelection", cursorless_target)
Expand Down

0 comments on commit 2b3ced9

Please sign in to comment.