* feat(autocomplete): add zh-CN descriptions for small-gap utilities
Localize the remaining Fig descriptions of 22 general-purpose commands that
had 15 or fewer untranslated keys: echo, which, paste, pwd, clear, su,
crontab, env, uname, base64, date, id, split, seq, join, dig, dd, htop,
basename, dirname, readlink, and more.
- Add 159 unique zh-CN entries (160 per-command entries; basename and
dirname share one key) and regenerate zh-TW from them.
- Preload the new specs and extend the untranslated-description audit and
its preload assertions.
- Add batch 4 coverage, semantics, insertion-text and zh-TW terminology
tests plus the batch research note.
- Keep upstream wording quirks documented instead of hidden: dig labels NS
as "Query MX Record", readlink reuses stat wording, and date/su/env follow
the BSD/macOS flags their specs actually expose.
* fix(autocomplete): align uname and dd wording with GNU output
Review the batch 4 commands against jaywcjlove/linux-command (MIT), which
Netcatty's Linux-centric sessions match better than the bundled Fig wording.
- uname -s/-r/-v now say kernel name/release/version: GNU uname prints the
kernel, not the distribution, and macOS reports Darwin through the same
options.
- dd cbs states the conversion record is counted in bytes.
- Document which specs in this batch expose BSD/macOS-only options (date, su,
id, base64, split, seq, env, more, which) so their descriptions are not
rewritten into GNU wording that the inserted option does not have, and note
dd's upstream `files` operand artifact.
No key was added or removed; zh-TW is regenerated from zh-CN.
* feat(autocomplete): ship a GNU date spec for Linux-first completion
The bundled Fig date spec follows BSD/macOS flags (-j, -n, -t, -v, epoch
seconds for -r), so Linux hosts were offered options that do not exist there.
Local specs already override the bundled package, so add electron/specs/date.js
with the GNU option set: -d/--date, --debug, -f/--file, -I/--iso-8601,
-R/--rfc-email, --rfc-3339, -r/--reference, -s/--set, -u/--utc, plus the
+FORMAT operand.
- Translate the 13 new descriptions; zh-TW is regenerated from them.
- Remove the 13 BSD-only date entries after a repository-wide scan showed no
other spec references them.
- Resolve local specs first in the batch 4 test, matching runtime and the
untranslated-description audit, and spot-check the new GNU wording.
* fix(autocomplete): correct GNU wording and add local specs
Follow-up review of batch 4 found wording that would show up in the popup and
two upstream spec defects. Local specs already override @withfig/autocomplete,
so the wrong option sets are replaced rather than translated around.
- Add electron/specs/{dig,readlink,base64,htop}.js:
dig fixes the NS label and drops the bogus TTL type; readlink replaces the
stat wording with the real GNU options; base64 moves from BSD -b/-i/-o to
GNU -w and --ignore-garbage; htop documents the -H delay in seconds.
- Correct awk -c (traditional mode) and -t (--lint-old) to match gawk, with
the dictionary keys migrated alongside -n.
- Reword review findings: htop -H highlights exited processes, split -a uses
characters and -b uses KiB/MiB/GiB, dd cbs is a conversion record length,
join -a/-v name the file index and -o covers unpaired lines, basename -a
accepts multiple paths, env -0 ends records with NUL, dig ANY notes RFC 8482,
su -f/-m keep the BSD behavior without hardcoded environment claims, and
uname uses one verb for the kernel fields.
- Extend the zh-TW generator with documented post-conversion fixes (number
bases, extended, instance, header, TLS extension, data) and regenerate.
- Update the batch 2 and batch 4 research notes, and resolve local specs first
in the batch 4 test so it exercises what the app loads.
* test(autocomplete): cover all preloaded specs and Apple extension term
- Assert every one of the 22 batch-4 commands in COMMON_FIG_SPECS; the old
loop only covered 7, so dropping a preload entry could pass unnoticed.
- Keep the noun “extension” as 擴充功能: the generic 擴充套件→擴充 rule is
right for “extended” compounds (擴充屬性, 擴充標頭, 擴充正規表示式), but
Apple's option descriptions need the noun form.
* fix(autocomplete): choose Fig specs by target OS and correct GNU semantics
- Resolve date, base64 and readlink against the target session's OS: macOS
keeps its BSD specs while Linux keeps the local GNU ones. The renderer now
passes the OS over the Fig bridge, and spec contents, in-flight loads, the
available-name list and the loaded-name index are all scoped by command and
OS, so one renderer can serve Linux and macOS sessions without mixing them.
- Add native macOS date and readlink specs (date gains -z, readlink exposes
only -f/-n) and keep the bundled date/base64 specs as the macOS fallback.
The bridge spec list merges specs/macos only for macOS sessions, so a
platform-only command is never suggested where it cannot load.
- Fix GNU readlink: -q/--quiet/-s/--silent suppress error messages, -v/--verbose
reports them, and the nonexistent --strip is gone. Restore filepath
completion for base64 operands and date -f/-r, and cover date -r with numeric
prefixes so digit-leading filenames stay discoverable.
- Complete values attached to optional option arguments (-Is -> -Iseconds,
--iso-8601=s -> --iso-8601=seconds) only for specs that opt in through
netcattyOptionalArgAttached, leaving other commands' optional arguments and
required-argument completion unchanged.
- Describe su -m as BSD's caller login shell versus util-linux's -s/SHELL
order, refresh the affected zh-CN/zh-TW entries and the bundled-date fallback
translations, and regenerate zh-TW with the repository script.
- Add focused tests for per-OS loader caching, spec listing and scoping,
attached-argument completion, path completion, and localized descriptions;
update the batch-4 research notes to match.
* test(autocomplete): retrigger CI after a runner cancellation
The lint-and-test job on f09b3eed0 ended with "The runner has received a
shutdown signal" during the plugin boundary step, not with a test failure.
Contributors cannot re-run that job, so this empty commit triggers a fresh
PR synchronize check.
* fix(i18n): correct zh-CN autocomplete option descriptions
- Fix 38 "registry" mistranslations: Docker/kubectl image registry vs
npm/yarn/pnpm package source
- Fix git --source (prints a ref name, not source code)
- Fix the truncated --pathspec-file-nul key (NUL, not whitespace)
- Correct OpenCC s2twp ambiguous characters in generated zh-TW and add
the correction table to the generator
- Add regression assertions for the corrected entries
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(i18n): correct autocomplete option descriptions
- Fix 32 verified mistranslations across git, Docker/Kubernetes,
package managers, and core ops commands: git pull --rebase direction,
find primaries, scp/curl cipher terminology, git config
--default/--system, unzip/python editorial notes, and more
- Unify git worktree on 工作树 (15 entries), Docker secret on 密钥 (7),
and Docker buildx on 构建器 (10)
- Restore git blame's missing subcommand description with a local spec
override and translate it
- Update batch1/batch2 expectations and the research notes for the two
editorial notes that are now faithful translations
Co-Authored-By: Claude Code <noreply@anthropic.com>
* feat(autocomplete): add podman and ip descriptions
- Add 66 podman descriptions (325/325 coverage) and a batch5 test
- Add a local ip spec covering addresses, links, routes, neighbors,
rules, tunnels, netns, multicast, xfrm and monitor, plus 15 root
options; translate all 88 descriptions
- Fix podman machine terminology (虚拟机) and --log-level wording
(指定级别及以上)
- Add a batch6 test for the ip spec
Co-Authored-By: Claude Code <noreply@anthropic.com>
* feat(autocomplete): show Chinese descriptions for command suggestions
- Generate commandDescriptions.ts from the Fig specs and the committed
dictionaries (674 commands; 83 already translated)
- Fill source "command" suggestions with zh-CN/zh-TW descriptions
- Align cp's zh-CN description with the conventional wording
- Stop maintaining zh-TW: new entries are zh-CN only, and the tests no
longer require zh-TW key parity, only that zh-TW has no stale keys
Co-Authored-By: Claude Code <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
8.3 KiB
Autocomplete description overlay: zip/unzip/make/nano batch
This batch continues the offline Fig description overlay after the touch
pilot. The Fig specs keep their English names, arguments, and structure; only
suggestion descriptions are localized for zh-CN and generated into zh-TW.
Sources
| Source | Version / location | Used for |
|---|---|---|
@withfig/autocomplete |
2.692.3, npm gitHead aef52acff84c45edde61ae610cc2c964802b9a38; src/{zip,unzip,make,nano}.ts and compiled build/*.js |
English keys, option names, and arguments |
jaywcjlove/linux-command |
repository HEAD 8041aeda04762e136078decb2de201ec4348527c (2026-10-31); command/zip.md, command/unzip.md, command/make.md, command/nano.md |
Simplified-Chinese terminology and common examples |
| GNU Make | local GNU Make 3.81, make --help and make(1) |
Make option semantics |
| Apple gnumake | tag gnumake-136, commit d16cdb2067133c031532d19c5a06d2e74993ef2a, main.c |
-N NeXT compatibility extension |
| Info-ZIP | local zip 3.0 and unzip 6.00 (Apple builds), -h/manual output |
ZIP option semantics |
| ArchWiki | Character encoding, checked 2026-11-04, https://wiki.archlinux.org/title/Character_encoding |
Confirm patched unzip uses -O gbk for legacy Windows filenames |
Checked on 2026-11-04. Every adopted English key below occurs only in the
zip, unzip, make, or nano spec in the bundled Fig package and local
electron/specs; no other command shares these keys. Where the Fig English text
conflicts with the verified implementation, the zh-CN text follows the verified
behavior and the discrepancy is recorded below.
Adopted entries
zip
| Entry | English | zh-CN |
|---|---|---|
| command | Package and compress (archive) files into zip file | 将文件打包并压缩为 zip 文件 |
| argument | Name of archive | 压缩包名称 |
-r |
Package and compress a directory and its contents, recursively | 递归打包并压缩目录及其内容 |
-9 |
Archive a directory and its contents with the highest level [9] of compression | 使用最高压缩级别 9 |
unzip
| Entry | English | zh-CN |
|---|---|---|
| command | Extract compressed files in a ZIP archive | 解压 ZIP 压缩包中的文件 |
-l |
List the contents of a zip file without extracting | 列出 zip 文件内容而不解压 |
-0 |
Extract a zip file created in windows, containing files with non-ascii (chinese) filenames | 解压由 Windows 创建、包含非 ASCII(中文)文件名的 zip 文件 |
Note: the Fig spec's
-0option is dubious (Info-ZIP unzip 6.00 has no-0). The zh-CN value translates the English key faithfully instead of showing an editorial note in the completion popup; fix the option name in a local spec override if the upstream entry is confirmed wrong.
make
| Entry | English | zh-CN |
|---|---|---|
--file, -f, --makefile |
Read FILE as a makefile | 将 FILE 作为 makefile 读取 |
-C, --directory |
Change to DIRECTORY before doing anything | 执行任何操作前先切换到 DIRECTORY |
-B, --always-make |
Unconditionally make all targets | 无条件构建所有目标 |
-e, --environment-overrides |
Environment variables override makefiles | 环境变量覆盖 makefile 中的设置 |
-h, --help |
Print this message and exit | 显示此帮助信息并退出 |
-i, --ignore-errors |
Ignore errors from commands | 忽略命令返回的错误 |
-k, --keep-going |
Keep going when some targets can't be made | 某些目标无法构建时继续执行 |
-L, --check-symlink-times |
Use the latest mtime between symlinks and target | 在符号链接与目标之间使用最新的修改时间 |
-p, --print-data-base |
Print make's internal database | 打印 make 的内部数据库 |
-q, --question |
Run no commands; exit status says if up to date | 不运行任何命令;退出状态表示目标是否最新 |
-r, --no-builtin-rules |
Disable the built-in implicit rules | 禁用内置隐式规则 |
-R, --no-builtin-variables |
Disable the built-in variable settings | 禁用内置变量设置 |
-t, --touch |
Touch targets instead of remaking them | 仅更新目标的时间戳,而不重新构建 |
-v, --version |
Print the version number of make and exit | 显示 make 版本号并退出 |
-w, --print-directory |
Print the current directory | 显示当前目录 |
-d |
Print lots of debugging information | 输出大量调试信息 |
--debug |
Print various types of debugging information | 输出各类调试信息 |
-I, --include-dir |
Search directory for included makefiles | 在目录中搜索被包含的 makefile |
-l, --load-average |
Don't start multiple jobs unless load is below N | 仅当负载低于 N 时才启动多个作业 |
-o, --old-file |
Consider file to be very old and don't remake it | 将文件视为非常旧,不重新构建 |
--no-print-directory |
Turn off -w, even if it was turned on implicitly | 关闭 -w,即使它是被隐式启用的 |
-W, --what-if, --new-file, --assume-new |
Consider file to be infinitely new | 将文件视为永远最新 |
--warn-undefined-variables |
Warn when an undefined variable is referenced | 引用未定义变量时发出警告 |
-N, --Next-option |
Turn on value of next option | 启用指定的 NeXT 兼容选项(Apple 扩展) |
nano
| Entry | English | zh-CN |
|---|---|---|
| command | Nano's ANOther editor, an enhanced free Pico clone | Nano 的 ANOther 编辑器,一个增强的免费 Pico 克隆 |
zh-TW is generated from these values with
node scripts/generate-autocomplete-descriptions-zh-TW.mjs (OpenCC s2twp), not
edited by hand. Spot checks include 遞迴, 檔案, 資訊, and 除錯.
Semantic notes
zip -renables recursive directory archiving.zip -9only selects the highest compression level 9; it does not recurse by itself. The Fig English description mentions archiving a directory, butzip -h2separates the two, so the zh-CN text is limited to the compression level.unzip -lmatcheslinux-commandand the local manual: list archive contents without extracting.unzip -0is a Fig-only entry in this package. The localunzip 6.00andlinux-commanddo not list-0. Some Linux builds with filename-encoding patches use-O gbkfor Windows/GBK filenames (confirmed against the ArchWiki character-encoding notes), but that support is not universal and must be checked against the installed build. The zh-CN text therefore only warns that the upstream option looks wrong and asks users to verify the current unzip version;-O gbkremains in this research note. The Fig option name and argument structure are unchanged, and no platform detection or option rename was added.- Make options were checked against the local GNU Make 3.81 help/man output.
-N/--NeXT-optionis an Apple/NeXT compatibility extension, not a generic GNU Make option: Apple's source enables NeXT features such asvpath,quiet,makefiles, anderrexit. Fig spells the long form--Next-option, which differs in capitalization from Apple's--NeXT-option; the option name is preserved while the zh-CN text describes the NeXT compatibility purpose. unzip/zipentry semantics match the local Apple Info-ZIP builds andlinux-command; no platform-specific text was added.nano's description is a recursive wordplay ("Nano's ANOther editor"); the translation keepsANOtherand describes it as an enhanced free Pico clone.
Later batches
This batch completed zip, unzip, make, and nano. The remaining preloaded
common commands were completed in batch 2; see
docs/research/autocomplete-descriptions-batch-2.md for the current unresolved
item and overall counts. ip, netstat, and ss remain listed without a
bundled Fig spec in 2.692.3.
License notices
The English description strings are derived from @withfig/autocomplete, and
the terminology review used jaywcjlove/linux-command. Both are MIT licensed:
Copyright (c) 2021 Hercules Labs Inc. (Fig); Copyright © 2019 小弟调调™.
The full MIT text is preserved in
docs/research/autocomplete-descriptions-touch.md#license-notices.