mirror of
https://github.com/veeso/termscp.git
synced 2026-09-15 00:25:54 -07:00
afbc74113f
Deploy docs to GitHub Pages / deploy (push) Has been cancelled
Site / build-site (push) Has been cancelled
Install.sh / build (macos-latest) (push) Has been cancelled
Install.sh / build (ubuntu-latest) (push) Has been cancelled
CI / toolchain (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / install-scripts (push) Has been cancelled
CI / crates-ubuntu-latest (push) Has been cancelled
CI / crates-windows-latest (push) Has been cancelled
CI / doc (push) Has been cancelled
CI / deny (push) Has been cancelled
CI / crates-macos-latest (push) Has been cancelled
* ci: migrate project automation to Just Centralize build, test, release, dependency, hook, and website commands in Just recipes. Pin workflow tooling, use the repository toolchain, and run the complete validation set in CI. * ci: codex being codex * docs: update CLAUDE.md for just task runner migration Reflect the switch to just recipes for build/test/clippy/fmt, note dprint replacing raw rustfmt, and add a cross-platform code requirement. * fix: resolve clippy warnings breaking CI on ubuntu and windows Use clone() instead of implicit to_string() on already-owned String values, gate the windows-only unused make_file_at import behind cfg(posix), and fix unused mut / manual assign-op in the windows-only localhost test. * fix: fmt
2.3 KiB
2.3 KiB
文件浏览器格式
你可以通过配置为文件浏览器定义自定义格式。本地主机和远程主机都支持此功能,因此你可以使用两种不同的语法。这两个字段分别名为 文件格式化语法(本地) 和 文件格式化语法(远程),它们定义了文件条目在文件浏览器中的显示方式。
语法
格式化器的语法如下:
{KEY1}... {KEY2:LENGTH}... {KEY3:LENGTH:EXTRA} {KEYn}...
花括号中的每个键都会被替换为相关的属性,而花括号之外的所有内容则保持不变。
- 键名是必填的,且必须是下列键之一。
LENGTH描述了用于显示该字段所保留的宽度。静态属性不支持它(GROUP、PEX、SIZE、USER)。EXTRA仅由部分键支持,并提供一个附加选项。请查看下面的键以确认是否支持EXTRA。
键
以下是格式化器支持的键:
| 键 | 说明 |
|---|---|
ATIME |
最后访问时间(默认 %b %d %Y %H:%M);EXTRA 为时间格式(例如 {ATIME:8:%H:%M}) |
CTIME |
创建时间(默认 %b %d %Y %H:%M);EXTRA 为时间格式(例如 {CTIME:8:%H:%M}) |
GROUP |
所属组 |
MTIME |
最后修改时间(默认 %b %d %Y %H:%M);EXTRA 为时间格式(例如 {MTIME:8:%H:%M}) |
NAME |
文件名(如果根目录与首个祖先目录之间的文件夹长度超过 LENGTH,则会被省略) |
PATH |
文件绝对路径(如果根目录与首个祖先目录之间的文件夹长度超过 LENGTH,则会被省略) |
PEX |
文件权限(UNIX 格式) |
SIZE |
文件大小(目录省略) |
SYMLINK |
符号链接目标(如果有,-> {FILE_PATH}) |
USER |
所属用户 |
默认格式
如果留空,则使用默认的格式化语法:
{NAME:24} {PEX} {USER} {SIZE} {MTIME:17:%b %d %Y %H:%M}