Skip to content

Commit 11d46d9

Browse files
committed
docs: add lost quick action
1 parent ae8a1a4 commit 11d46d9

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Features:
4444
- Custom LLM Server. You can customize your LLM Server in `Settings` -> `Tools` -> `AutoDev`
4545
- Custom Living documentation.
4646
- Team prompts. Customize your team prompts in codebase, and distribute to your team.
47+
- Custom Quick Action. You can add your own quick action.
4748
- Miscellaneous
4849
- CI/CD support. AutoDev will auto generate CI/CD config file.
4950
- Dockerfile support. AutoDev will auto generate Dockerfile.

docs/custom-quick-action.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: default
3+
title: Custom Quick Action
4+
nav_order: 10
5+
permalink: /custom/quick-action
6+
---
7+
8+
# Custom Quick Action
9+
10+
QuickAction will trigger by `control` + BACK_SLASH(`\`) key. The default behavior is to show a Input Dialog, and you can
11+
input your prompt.
12+
13+
## Customize
14+
15+
For more, see in example: [https://github.com/unit-mesh/untitled/tree/master/prompts/quick](https://github.com/unit-mesh/untitled/tree/master/prompts/quick)
16+
17+
You can custom task by your own, by put prompts files under `prompts/quick`:
18+
19+
```vtl
20+
---
21+
type: QuickAction
22+
name: Continue Writing
23+
category: Default
24+
language: Markdown
25+
interaction: AppendCursorStream
26+
---
27+
**system**
28+
29+
You are an assistant helping a user write a document. Output how the document continues, no more than 3 sentences. Output in markdown format. Do not use links.
30+
31+
Use this format, replacing text in brackets with the result. Do not include the brackets in the output:
32+
33+
[Continuation of the document in markdown format, no more than 3 sentences.]
34+
35+
**user**
36+
37+
${beforeCursor}
38+
```

0 commit comments

Comments
 (0)