Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/users/features/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,17 @@ In headless (`--prompt`) or non-interactive contexts, `/diff` prints a plain-tex

Commands for obtaining information and performing system settings.

| Command | Description | Usage Examples |
| --------------- | ----------------------------------------------- | -------------------------------- |
| `/help` | Display help information for available commands | `/help` or `/?` |
| `/status` | Display version information | `/status` or `/about` |
| `/status paths` | Display current session file and log paths | `/status paths` |
| `/stats` | Display detailed statistics for current session | `/stats` |
| `/settings` | Open settings editor | `/settings` |
| `/auth` | Change authentication method | `/auth` |
| `/bug` | Submit issue about Qwen Code | `/bug Button click unresponsive` |
| `/copy` | Copy last output content to clipboard | `/copy` |
| `/quit` | Exit Qwen Code immediately | `/quit` or `/exit` |
| Command | Description | Usage Examples |
| --------------- | ------------------------------------------------------------- | -------------------------------- |
| `/help` | Display help information for available commands | `/help` or `/?` |
| `/status` | Display version information | `/status` or `/about` |
| `/status paths` | Display current session file and log paths | `/status paths` |
| `/stats` | Display detailed statistics for current session | `/stats` |
| `/settings` | Open settings editor | `/settings` |
| `/auth` | Change authentication method | `/auth` |
| `/bug` | Submit issue about Qwen Code | `/bug Button click unresponsive` |
| `/copy` | Copy AI output to clipboard (`/copy N` = Nth-last AI message) | `/copy` or `/copy 2` |
| `/quit` | Exit Qwen Code immediately | `/quit` or `/exit` |

### 1.10 Common Shortcuts

Expand Down
22 changes: 21 additions & 1 deletion docs/users/features/markdown-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,25 @@ response:
| `/copy code typescript` | Copies the last `typescript` code block. |
| `/copy code mermaid 1` | Copies the first `mermaid` code block. |

## Selecting an Earlier AI Message

By default `/copy` targets the most recent AI message. Prefix the command with
a positive integer to copy from the Nth-last AI message instead — handy when
the latest reply is something low-signal (e.g., a TODO update) and the
substantive output is one or two turns back.

| Command | Behavior |
| --------------------- | ------------------------------------------------------ |
| `/copy 2` | Copies the second-to-last AI message in full. |
| `/copy 3` | Copies the third-to-last AI message in full. |
| `/copy 2 code python` | Copies the last `python` code block from the 2nd-last. |
| `/copy 3 latex` | Copies the last LaTeX block from the 3rd-last message. |

`/copy 1` is equivalent to `/copy`. If `N` exceeds the number of AI messages
in the session, `/copy` reports the actual count instead of copying anything.
Without a leading integer, sub-selectors such as `/copy code python 2` keep
their existing meaning (the 2nd `python` block in the last message).

## Current Limits

- Mermaid image rendering depends on Mermaid CLI plus terminal image support.
Expand All @@ -160,4 +179,5 @@ response:
Mermaid layout engine.
- Raw mode is global for rendered Markdown blocks; it is not a per-block toggle.
- LaTeX rendering covers common symbols and expressions, not full TeX layout.
- Source copy commands operate on the last AI response.
- Source copy commands target the last AI response by default, or the Nth-last
when invoked as `/copy N ...`.
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export default {
'obrir la documentació completa de Qwen Code al navegador',
'Configuration not available.': 'Configuració no disponible.',
'Connect an LLM provider': 'Connectar un proveïdor LLM',
'Copy the last result or code snippet to clipboard':
"Copiar l'últim resultat o fragment de codi al porta-retalls",
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
"Copia l'última resposta de la IA al porta-retalls (/copy N per a l'N-èsima)",

// ============================================================================
// Ordres - Agents
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ export default {
'Vollständige Qwen Code Dokumentation im Browser öffnen',
'Configuration not available.': 'Konfiguration nicht verfügbar.',
'Connect an LLM provider': 'LLM-Anbieter verbinden',
'Copy the last result or code snippet to clipboard':
'Letztes Ergebnis oder Codeausschnitt in die Zwischenablage kopieren',
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
'Letzte KI-Antwort in die Zwischenablage kopieren (/copy N für die N-letzte)',

// ============================================================================
// Commands - Agents
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ export default {
'open full Qwen Code documentation in your browser',
'Configuration not available.': 'Configuration not available.',
'Connect an LLM provider': 'Connect an LLM provider',
'Copy the last result or code snippet to clipboard':
'Copy the last result or code snippet to clipboard',
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
'Copy the last AI response to clipboard (/copy N for Nth-latest)',
'Show working-tree change stats versus HEAD':
'Show working-tree change stats versus HEAD',
'Could not determine current working directory.':
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export default {
'ouvrir la documentation complète de Qwen Code dans votre navigateur',
'Configuration not available.': 'Configuration non disponible.',
'Connect an LLM provider': 'Se connecter à un fournisseur LLM',
'Copy the last result or code snippet to clipboard':
'Copier le dernier résultat ou extrait de code dans le presse-papiers',
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
'Copier la dernière réponse IA dans le presse-papiers (/copy N pour la Nième)',

// ============================================================================
// Commandes - Agents
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export default {
'ブラウザで Qwen Code のドキュメントを開く',
'Configuration not available.': '設定が利用できません',
'Connect an LLM provider': 'LLM プロバイダーに接続',
'Copy the last result or code snippet to clipboard':
'最後の結果またはコードスニペットをクリップボードにコピー',
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
'最新のAI応答をクリップボードにコピー(/copy N で新しい方からN番目)',

// ============================================================================
// Commands - Agents
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ export default {
'abrir documentação completa do Qwen Code no seu navegador',
'Configuration not available.': 'Configuração não disponível.',
'Connect an LLM provider': 'Conectar a um provedor LLM',
'Copy the last result or code snippet to clipboard':
'Copiar o último resultado ou trecho de código para a área de transferência',
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
'Copiar a última resposta da IA para a área de transferência (/copy N para a N-ésima)',

// ============================================================================
// Commands - Agents
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ export default {
'Открытие полной документации Qwen Code в браузере',
'Configuration not available.': 'Конфигурация недоступна.',
'Connect an LLM provider': 'Подключить провайдера LLM',
'Copy the last result or code snippet to clipboard':
'Копирование последнего результата или фрагмента кода в буфер обмена',
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
'Копировать последний ответ ИИ в буфер обмена (/copy N для N-го с конца)',

// ============================================================================
// Команды - Агенты
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/zh-TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export default {
'在瀏覽器中打開完整的 Qwen Code 文檔',
'Configuration not available.': '配置不可用',
'Connect an LLM provider': '連接 LLM 提供商',
'Copy the last result or code snippet to clipboard':
'將最後的結果或代碼片段複製到剪貼板',
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
'將最近的 AI 回應複製到剪貼簿(/copy N 複製倒數第 N 則)',
'Show working-tree change stats versus HEAD':
'顯示工作區相對 HEAD 的變更統計',
'Could not determine current working directory.': '無法確定當前工作目錄。',
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/i18n/locales/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ export default {
'在浏览器中打开完整的 Qwen Code 文档',
'Configuration not available.': '配置不可用',
'Connect an LLM provider': '连接 LLM 提供商',
'Copy the last result or code snippet to clipboard':
'将最后的结果或代码片段复制到剪贴板',
'Copy the last AI response to clipboard (/copy N for Nth-latest)':
'将最近的 AI 回复复制到剪贴板(/copy N 复制倒数第 N 条)',
'Show working-tree change stats versus HEAD':
'显示工作区相对 HEAD 的变更统计',
'Could not determine current working directory.': '无法确定当前工作目录。',
Expand Down
Loading
Loading