Repository navigation
feat: add Professional command-step autocomplete - #9
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动 / What changed
p/py)可提示python等常用命令;已有命令时输入-(或 cmd 风格的/)会提示该命令的常用参数。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.pypython tools/check_step_editor_sync_smoke.pypython tools/check_shortcut_policy_smoke.pypython tools/check_readme_docs_smoke.pypython tools/check_platform_coupling_smoke.pypython 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
pycan suggestpython, 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.pyand does not loosen the checker.