Skip to content

Commit 974ebf6

Browse files
wenshaoeuxaristia
authored andcommitted
refactor: rename verboseMode to compactMode for better UX clarity (QwenLM#3075)
The "Compact Mode" label is more intuitive than "Verbose Mode" for users, as it directly describes the default compact view experience. This change inverts the boolean semantics (compactMode=false means show full output) and exposes the setting in the /settings dialog (showInDialog: true). - Rename ui.verboseMode → ui.compactMode with inverted default (false) - Rename VerboseModeContext → CompactModeContext (file and exports) - Rename TOGGLE_VERBOSE_MODE → TOGGLE_COMPACT_MODE in key bindings - Update all consumer components with inverted logic - Update i18n keys across 6 locales (verbose → compact) - Update VS Code settings schema - Add ui.compactMode documentation to settings.md - Fix Ctrl+O description in keyboard-shortcuts.md
1 parent 2be3997 commit 974ebf6

22 files changed

Lines changed: 95 additions & 94 deletions

File tree

docs/users/configuration/settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Settings are organized into categories. All settings should be placed within the
106106
| `ui.showMemoryUsage` | boolean | Display memory usage information in the UI. | `false` |
107107
| `ui.showLineNumbers` | boolean | Show line numbers in code blocks in the CLI output. | `true` |
108108
| `ui.showCitations` | boolean | Show citations for generated text in the chat. | `true` |
109+
| `ui.compactMode` | boolean | Hide tool output and thinking for a cleaner view. Toggle with `Ctrl+O` during a session. When enabled, a `compact` indicator appears in the footer. The setting persists across sessions. | `false` |
109110
| `enableWelcomeBack` | boolean | Show welcome back dialog when returning to a project with conversation history. When enabled, Qwen Code will automatically detect if you're returning to a project with a previously generated project summary (`.qwen/PROJECT_SUMMARY.md`) and show a dialog allowing you to continue your previous conversation or start fresh. This feature integrates with the `/summary` command and quit confirmation dialog. | `true` |
110111
| `ui.accessibility.enableLoadingPhrases` | boolean | Enable loading phrases (disable for accessibility). | `true` |
111112
| `ui.accessibility.screenReader` | boolean | Enables screen reader mode, which adjusts the TUI for better compatibility with screen readers. | `false` |

docs/users/reference/keyboard-shortcuts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This document lists the available keyboard shortcuts in Qwen Code.
1010
| `Ctrl+C` | Cancel the ongoing request and clear the input. Press twice to exit the application. |
1111
| `Ctrl+D` | Exit the application if the input is empty. Press twice to confirm. |
1212
| `Ctrl+L` | Clear the screen. |
13-
| `Ctrl+O` | Toggle the display of the debug console. |
13+
| `Ctrl+O` | Toggle compact mode (hide/show tool output and thinking). |
1414
| `Ctrl+S` | Allows long responses to print fully, disabling truncation. Use your terminal's scrollback to view the entire output. |
1515
| `Ctrl+T` | Toggle the display of tool descriptions. |
1616
| `Shift+Tab` (`Tab` on Windows) | Cycle approval modes (`plan``default``auto-edit``yolo`) |

packages/cli/src/config/keyBindings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export enum Command {
5151
EXIT = 'exit',
5252
SHOW_MORE_LINES = 'showMoreLines',
5353
RETRY_LAST = 'retryLast',
54-
TOGGLE_VERBOSE_MODE = 'toggleVerboseMode',
54+
TOGGLE_COMPACT_MODE = 'toggleCompactMode',
5555

5656
// Shell commands
5757
REVERSE_SEARCH = 'reverseSearch',
@@ -173,7 +173,7 @@ export const defaultKeyBindings: KeyBindingConfig = {
173173
[Command.EXIT]: [{ key: 'd', ctrl: true }],
174174
[Command.SHOW_MORE_LINES]: [{ key: 's', ctrl: true }],
175175
[Command.RETRY_LAST]: [{ key: 'y', ctrl: true }],
176-
[Command.TOGGLE_VERBOSE_MODE]: [{ key: 'o', ctrl: true }],
176+
[Command.TOGGLE_COMPACT_MODE]: [{ key: 'o', ctrl: true }],
177177

178178
// Shell commands
179179
[Command.REVERSE_SEARCH]: [{ key: 'r', ctrl: true }],

packages/cli/src/config/settingsSchema.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,15 +591,15 @@ const SETTINGS_SCHEMA = {
591591
description: 'The last time the feedback dialog was shown.',
592592
showInDialog: false,
593593
},
594-
verboseMode: {
594+
compactMode: {
595595
type: 'boolean',
596-
label: 'Verbose Mode',
596+
label: 'Compact Mode',
597597
category: 'UI',
598598
requiresRestart: false,
599-
default: true,
599+
default: false,
600600
description:
601-
'Show full tool output and thinking in verbose mode (toggle with Ctrl+O).',
602-
showInDialog: false,
601+
'Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).',
602+
showInDialog: true,
603603
},
604604
},
605605
},

packages/cli/src/i18n/locales/de.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,9 +1970,9 @@ export default {
19701970
'Raw-Modus nicht verfügbar. Bitte in einem interaktiven Terminal ausführen.',
19711971
'(Use ↑ ↓ arrows to navigate, Enter to select, Ctrl+C to exit)\n':
19721972
'(↑ ↓ Pfeiltasten zum Navigieren, Enter zum Auswählen, Strg+C zum Beenden)\n',
1973-
verbose: 'ausführlich',
1974-
'Show full tool output and thinking in verbose mode (toggle with Ctrl+O).':
1975-
'Vollständige Tool-Ausgabe und Denkprozess im ausführlichen Modus anzeigen (mit Strg+O umschalten).',
1973+
compact: 'kompakt',
1974+
'Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).':
1975+
'Tool-Ausgabe und Denkprozess ausblenden für eine übersichtlichere Ansicht (mit Strg+O umschalten).',
19761976
'Press Ctrl+O to show full tool output':
19771977
'Strg+O für vollständige Tool-Ausgabe drücken',
19781978

packages/cli/src/i18n/locales/en.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,9 +2010,9 @@ export default {
20102010
'Raw mode not available. Please run in an interactive terminal.',
20112011
'(Use ↑ ↓ arrows to navigate, Enter to select, Ctrl+C to exit)\n':
20122012
'(Use ↑ ↓ arrows to navigate, Enter to select, Ctrl+C to exit)\n',
2013-
verbose: 'verbose',
2014-
'Show full tool output and thinking in verbose mode (toggle with Ctrl+O).':
2015-
'Show full tool output and thinking in verbose mode (toggle with Ctrl+O).',
2013+
compact: 'compact',
2014+
'Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).':
2015+
'Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).',
20162016
'Press Ctrl+O to show full tool output':
20172017
'Press Ctrl+O to show full tool output',
20182018

packages/cli/src/i18n/locales/ja.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,9 +1462,9 @@ export default {
14621462
'Rawモードが利用できません。インタラクティブターミナルで実行してください。',
14631463
'(Use ↑ ↓ arrows to navigate, Enter to select, Ctrl+C to exit)\n':
14641464
'(↑ ↓ 矢印キーで移動、Enter で選択、Ctrl+C で終了)\n',
1465-
verbose: '詳細',
1466-
'Show full tool output and thinking in verbose mode (toggle with Ctrl+O).':
1467-
'詳細モードで完全なツール出力と思考を表示します(Ctrl+O で切り替え)。',
1465+
compact: 'コンパクト',
1466+
'Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).':
1467+
'コンパクトモードでツール出力と思考を非表示にします(Ctrl+O で切り替え)。',
14681468
'Press Ctrl+O to show full tool output': 'Ctrl+O で完全なツール出力を表示',
14691469

14701470
'Switch to plan mode or exit plan mode':

packages/cli/src/i18n/locales/pt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,9 +1960,9 @@ export default {
19601960
'Modo raw não disponível. Execute em um terminal interativo.',
19611961
'(Use ↑ ↓ arrows to navigate, Enter to select, Ctrl+C to exit)\n':
19621962
'(Use ↑ ↓ para navegar, Enter para selecionar, Ctrl+C para sair)\n',
1963-
verbose: 'detalhado',
1964-
'Show full tool output and thinking in verbose mode (toggle with Ctrl+O).':
1965-
'Mostrar saída completa da ferramenta e raciocínio no modo detalhado (alternar com Ctrl+O).',
1963+
compact: 'compacto',
1964+
'Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).':
1965+
'Ocultar saída da ferramenta e raciocínio para uma visualização mais limpa (alternar com Ctrl+O).',
19661966
'Press Ctrl+O to show full tool output':
19671967
'Pressione Ctrl+O para exibir a saída completa da ferramenta',
19681968

packages/cli/src/i18n/locales/ru.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1967,9 +1967,9 @@ export default {
19671967
'Raw-режим недоступен. Пожалуйста, запустите в интерактивном терминале.',
19681968
'(Use ↑ ↓ arrows to navigate, Enter to select, Ctrl+C to exit)\n':
19691969
'(↑ ↓ стрелки для навигации, Enter для выбора, Ctrl+C для выхода)\n',
1970-
verbose: 'подробный',
1971-
'Show full tool output and thinking in verbose mode (toggle with Ctrl+O).':
1972-
'Показывать полный вывод инструментов и процесс рассуждений в подробном режиме (переключить с помощью Ctrl+O).',
1970+
compact: 'компактный',
1971+
'Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).':
1972+
'Скрывать вывод инструментов и процесс рассуждений для более чистого вида (переключить с помощью Ctrl+O).',
19731973
'Press Ctrl+O to show full tool output':
19741974
'Нажмите Ctrl+O для показа полного вывода инструментов',
19751975

packages/cli/src/i18n/locales/zh.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,9 +1814,9 @@ export default {
18141814
'原始模式不可用。请在交互式终端中运行。',
18151815
'(Use ↑ ↓ arrows to navigate, Enter to select, Ctrl+C to exit)\n':
18161816
'(使用 ↑ ↓ 箭头导航,Enter 选择,Ctrl+C 退出)\n',
1817-
verbose: '详细',
1818-
'Show full tool output and thinking in verbose mode (toggle with Ctrl+O).':
1819-
'详细模式下显示完整工具输出和思考过程(Ctrl+O 切换)。',
1817+
compact: '紧凑',
1818+
'Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).':
1819+
'紧凑模式下隐藏工具输出和思考过程,界面更简洁(Ctrl+O 切换)。',
18201820
'Press Ctrl+O to show full tool output': '按 Ctrl+O 查看详细工具调用结果',
18211821

18221822
'Switch to plan mode or exit plan mode': '切换到计划模式或退出计划模式',

0 commit comments

Comments
 (0)