mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-19 01:51:21 +08:00
ux(cli): change /copy command to copy last message
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@kilocode/cli": patch
|
||||
---
|
||||
|
||||
Make `/copy` copy the latest agent response and use `/copy-session` for session transcripts.
|
||||
@@ -90,7 +90,8 @@ For detailed help on every command and subcommand, see the [CLI Command Referenc
|
||||
| `/compact` | `/summarize` | Compact/summarize session |
|
||||
| `/undo` | - | Undo previous message |
|
||||
| `/redo` | - | Redo message |
|
||||
| `/copy` | - | Copy session transcript |
|
||||
| `/copy` | - | Copy latest agent response |
|
||||
| `/copy-session` | - | Copy session transcript |
|
||||
| `/export` | - | Export session transcript |
|
||||
| `/timestamps` | `/toggle-timestamps` | Show/hide timestamps |
|
||||
| `/thinking` | `/toggle-thinking` | Show/hide thinking blocks |
|
||||
|
||||
@@ -994,6 +994,11 @@ export function Session() {
|
||||
title: "Copy last assistant message",
|
||||
value: "messages.copy",
|
||||
category: "Session",
|
||||
// kilocode_change start - /copy copies the latest assistant response
|
||||
slash: {
|
||||
name: "copy",
|
||||
},
|
||||
// kilocode_change end
|
||||
run: () => {
|
||||
const revertID = session()?.revert?.messageID
|
||||
const lastAssistantMessage = messages().findLast(
|
||||
@@ -1051,7 +1056,7 @@ export function Session() {
|
||||
value: "session.copy",
|
||||
category: "Session",
|
||||
slash: {
|
||||
name: "copy",
|
||||
name: "copy-session", // kilocode_change - transcript copy moved off /copy
|
||||
},
|
||||
run: async () => {
|
||||
try {
|
||||
|
||||
@@ -303,8 +303,8 @@ Custom themes: place JSON files in `~/.config/kilo/themes/` or `.kilo/themes/`.
|
||||
| Compact/summarize | `<leader>c` | `/compact`, `/summarize` |
|
||||
| Undo message | `<leader>u` | `/undo` |
|
||||
| Redo | `<leader>r` | `/redo` |
|
||||
| Copy last response | `<leader>y` | — |
|
||||
| Copy transcript | — | `/copy` |
|
||||
| Copy last response | `<leader>y` | `/copy` |
|
||||
| Copy transcript | — | `/copy-session` |
|
||||
|
||||
### Agent & Model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user