Skip to content

feat: add Professional command-step autocomplete - #9

Merged
forgottenlab merged 2 commits into
mainfrom
feat/command-step-autocomplete
Nov 30, 2026
Merged

forgottenlab merged 2 commits into
mainfrom
feat/command-step-autocomplete

Conversation

@forgottenlab

Copy link
Copy Markdown
Owner

改动 / What changed

  • Professional 命令步骤的「执行命令」输入框现在会给出建议:输入前缀(例如 p / py)可提示 python 等常用命令;已有命令时输入 -(或 cmd 风格的 /)会提示该命令的常用参数。
  • 建议以输入框下方的弹出列表显示,只有点击、按 Enter / Tab 选中后才会写入;输入过程中不会自动改写命令。Esc 可关闭列表。
  • 第一切片以常用 Windows / 开发命令和常见参数为主;另外可从 PATH 目录顶层的可执行文件名、以及当前方案里已有的命令作补充。只列目录本身,不会遍历整个磁盘。
  • 不改变命令执行语义、导出运行器或方案字段。QTextEdit 的 NoFrame 边框约定保持不变。Basic 仍然不提供命令步骤,也不会挂载这套建议。
  • 同一分支内登记了 3 条合理的平台耦合基线:PATH 后缀收集,以及建议目录中的 cmd / powershell 项。检查器本身未放宽。

检查 / How it was checked

解释器:D:\\Downloads\\01-Software\\Professional\\SDKs\\miniconda3\\python.exe(Python 3.13.9,PySide6 6.9.3)。以下命令均已通过:

  • python tools/check_command_suggestions_smoke.py(含前缀 / 参数 / 显式写入 / PATH 补充 / 不自动改写 / Basic 不展示)
  • python tools/check_control_border_theme_smoke.py
  • python tools/check_step_editor_sync_smoke.py
  • python tools/check_shortcut_policy_smoke.py
  • python tools/check_readme_docs_smoke.py
  • python tools/check_platform_coupling_smoke.py
  • python tools/macos_ci_report.py coupling --checker tools/check_platform_coupling_smoke.py --output ...(new=0、stale_baseline=0)

没有用官方开发脚本做交互式窗口探测,避免在桌面弹出 Qt 窗口。

English Summary

Professional Command steps now offer editor-only autocomplete: a prefix such as py can suggest python, and typing - lists common flags for the current command. Suggestions appear in a popup under the existing QTextEdit and are inserted only after the user chooses one; the field is not rewritten on every keystroke. The catalog is a curated set of common Windows and developer commands, optionally supplemented by PATH basenames and commands already in the plan, without scanning the whole disk. Execution, export, and the plan schema are unchanged. Basic still has no Command steps.

The same branch registers three justified platform-coupling fingerprints in editor/command_suggestions.py and does not loosen the checker.

Offer curated command and flag suggestions in the Professional Command
editor. A prefix such as py can suggest python, and a leading - lists
common flags for the current command. PATH executable names may also
appear as supplements. Suggestions are shown in a popup and are written
only after the user chooses one.
Register three justified editor/command_suggestions.py findings: PATH
suffix collection and the curated cmd / powershell catalog entries.
@forgottenlab
forgottenlab merged commit ab2b077 into main Nov 30, 2026
1 check passed
@forgottenlab
forgottenlab deleted the feat/command-step-autocomplete branch November 30, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant