diff --git a/CLAUDE.md b/CLAUDE.md index 9091b76..893a0ff 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -108,3 +108,4 @@ Platform-specific dependencies: SSH and FTP crates use different TLS backends on - Always run `cargo +nightly fmt --all` and `cargo clippy --no-default-features -- -Dwarnings` after modifying Rust code - Always put plans to `./.claude/plans/` +- When changing behavior that is documented under `docs/` (paths, config keys, commands, flags, etc.), update BOTH `docs/en-US/` and `docs/zh-CN/` to keep the translations in sync diff --git a/docs/en-US/configuration/configuration.md b/docs/en-US/configuration/configuration.md index 9131878..3317f8a 100644 --- a/docs/en-US/configuration/configuration.md +++ b/docs/en-US/configuration/configuration.md @@ -9,8 +9,8 @@ To enter the configuration, press `` from the termscp home. termscp requires these paths to be accessible: - `$HOME/.config/termscp/` on Linux/BSD -- `$HOME/Library/Application Support/termscp` on macOS -- `FOLDERID_RoamingAppData\termscp\` on Windows +- `$HOME/.config/termscp/` on macOS +- `%USERPROFILE%\.termscp\` on Windows ## Parameters diff --git a/docs/en-US/configuration/themes.md b/docs/en-US/configuration/themes.md index b3ae953..6e0a6ab 100644 --- a/docs/en-US/configuration/themes.md +++ b/docs/en-US/configuration/themes.md @@ -52,12 +52,12 @@ are two quick fixes: ``` 2. Edit your theme by hand. If you use a custom theme, edit the file and add the - missing key. The theme is located at `$CONFIG_DIR/termscp/theme.toml`, where + missing key. The theme is located at `$CONFIG_DIR/theme.toml`, where `$CONFIG_DIR` is: - - FreeBSD/Linux: `$HOME/.config/` - - macOS: `$HOME/Library/Application Support` - - Windows: `%appdata%` + - FreeBSD/Linux: `$HOME/.config/termscp` + - macOS: `$HOME/.config/termscp` + - Windows: `%USERPROFILE%\.termscp` Missing keys are reported in the CHANGELOG under `BREAKING CHANGES` for the version you have just installed. diff --git a/docs/en-US/usage/bookmarks.md b/docs/en-US/usage/bookmarks.md index 90fb65a..f9bd1ce 100644 --- a/docs/en-US/usage/bookmarks.md +++ b/docs/en-US/usage/bookmarks.md @@ -7,8 +7,8 @@ termscp lets you save your favourite hosts as bookmarks, which can then be loade Bookmarks are saved, when possible, in the configuration directory: - `$HOME/.config/termscp/` on Linux/BSD -- `$HOME/Library/Application Support/termscp` on macOS -- `FOLDERID_RoamingAppData\termscp\` on Windows +- `$HOME/.config/termscp/` on macOS +- `%USERPROFILE%\.termscp\` on Windows ## Saving passwords diff --git a/docs/zh-CN/configuration/configuration.md b/docs/zh-CN/configuration/configuration.md index b806757..2fdcaaa 100644 --- a/docs/zh-CN/configuration/configuration.md +++ b/docs/zh-CN/configuration/configuration.md @@ -7,8 +7,8 @@ termscp 支持大量用户自定义参数。termscp 将这些参数存储在一 termscp 要求以下路径可访问: - Linux/BSD 上的 `$HOME/.config/termscp/` -- macOS 上的 `$HOME/Library/Application Support/termscp` -- Windows 上的 `FOLDERID_RoamingAppData\termscp\` +- macOS 上的 `$HOME/.config/termscp/` +- Windows 上的 `%USERPROFILE%\.termscp\` ## 参数 diff --git a/docs/zh-CN/configuration/themes.md b/docs/zh-CN/configuration/themes.md index 94a69d1..78b4ada 100644 --- a/docs/zh-CN/configuration/themes.md +++ b/docs/zh-CN/configuration/themes.md @@ -40,11 +40,11 @@ termscp 接受以下颜色格式: termscp theme ``` -2. 手动编辑你的主题。如果你使用自定义主题,请编辑该文件并添加缺失的键。主题位于 `$CONFIG_DIR/termscp/theme.toml`,其中 `$CONFIG_DIR` 为: +2. 手动编辑你的主题。如果你使用自定义主题,请编辑该文件并添加缺失的键。主题位于 `$CONFIG_DIR/theme.toml`,其中 `$CONFIG_DIR` 为: - - FreeBSD/Linux:`$HOME/.config/` - - macOS:`$HOME/Library/Application Support` - - Windows:`%appdata%` + - FreeBSD/Linux:`$HOME/.config/termscp` + - macOS:`$HOME/.config/termscp` + - Windows:`%USERPROFILE%\.termscp` 缺失的键会在你刚安装的版本的 CHANGELOG 中 `BREAKING CHANGES` 部分列出。 diff --git a/docs/zh-CN/usage/bookmarks.md b/docs/zh-CN/usage/bookmarks.md index c7cfe0c..99ba958 100644 --- a/docs/zh-CN/usage/bookmarks.md +++ b/docs/zh-CN/usage/bookmarks.md @@ -7,8 +7,8 @@ termscp 允许你将常用的主机保存为书签,随后可从主界面快速 书签会在可能的情况下保存在配置目录中: - Linux/BSD 上为 `$HOME/.config/termscp/` -- macOS 上为 `$HOME/Library/Application Support/termscp` -- Windows 上为 `FOLDERID_RoamingAppData\termscp\` +- macOS 上为 `$HOME/.config/termscp/` +- Windows 上为 `%USERPROFILE%\.termscp\` ## 保存密码