Chapter 18 · Settings and tools设置与工具設定與工具
Toolbar and status bar工具栏与状态栏工具列與狀態列
Toolbar groups
| Group | Buttons |
|---|---|
| File | New, open, save, save all, close, close all, print. |
| Clipboard | Cut, copy, paste. |
| History | Undo, redo. |
| Macro | Record, stop, play, play multiple times. |
| Editor | Mini map toggle, split view, word wrap, and other view switches. |
The toolbar is a single row at the top of the window and cannot be floated. Buttons carry accessibility labels, so they can be reached with VoiceOver and from the keyboard via the standard toolbar focus.
Macro indicator
While recording, a red indicator appears in the status area and the record button changes state. Stopping restores the normal state; there is no background recording.
Status bar segments
| Segment | Meaning | Clickable |
|---|---|---|
| Ln / Col | Caret line and column, 1-based. | No |
| Encoding | Active charset for this document. | Yes — change or reload |
| Line endings | LF or CRLF. | Yes — convert |
| Language | Highlighting language. | Yes — override |
| Counts | Lines and characters in the document. | No |
| Autosave | Time of the last session write. | No |
Why counts can differ from Finder
Line count is derived from line terminators in the buffer; character count is the buffer length, not the byte size on disk. For multi-byte encodings the two numbers diverge, and that is expected.
Progress indicators
Comparison and background highlighting show progress in the status area. When no indicator is visible, no background work is running.
工具栏分组
| 分组 | 按钮 |
|---|---|
| 文件 | 新建、打开、保存、全部保存、关闭、全部关闭、打印。 |
| 剪贴板 | 剪切、复制、粘贴。 |
| 历史 | 撤销、重做。 |
| 宏 | 录制、停止、播放、多次播放。 |
| 编辑器 | 缩略图开关、分屏、自动换行等视图开关。 |
工具栏固定在窗口顶部一行,不能浮动。按钮带有无障碍标签,VoiceOver 与键盘焦点都能到达。
宏状态指示
录制时状态区域出现红色指示,录制按钮状态变化。停止后恢复常态;不存在后台悄悄录制。
状态栏分段
| 分段 | 含义 | 可点击 |
|---|---|---|
| 行 / 列 | 光标所在行列,从 1 开始。 | 否 |
| 编码 | 当前文档使用的字符集。 | 是——切换或重新加载 |
| 行尾 | LF 或 CRLF。 | 是——转换 |
| 语言 | 高亮语言。 | 是——手动覆盖 |
| 计数 | 文档行数与字符数。 | 否 |
| 自动保存 | 最近一次会话写入时间。 | 否 |
为什么计数与 Finder 不一致
行数按缓冲区中的换行符统计;字符数是缓冲区长度,不是磁盘字节数。多字节编码下两者必然不同,这是预期行为。
进度指示
比较与后台高亮会在状态区域显示进度。没有指示时,说明后台没有任务在跑。
工具列分組
| 分組 | 按鈕 |
|---|---|
| 檔案 | 新建、開啟、儲存、全部儲存、關閉、全部關閉、列印。 |
| 剪貼簿 | 剪下、複製、貼上。 |
| 歷史 | 復原、重做。 |
| 巨集 | 錄制、停止、播放、多次播放。 |
| 編輯器 | 縮圖開關、分割檢視、自動換行等檢視開關。 |
工具列固定在視窗頂部一行,不能浮動。按鈕帶有無障礙標籤,VoiceOver 與鍵盤焦點都能到達。
巨集狀態指示
錄制時狀態區域出現紅色指示,錄制按鈕狀態變化。停止後恢復常態;不存在後台悄悄錄制。
狀態列分段
| 分段 | 含義 | 可點擊 |
|---|---|---|
| 行 / 列 | 游標所在行列,從 1 開始。 | 否 |
| 編碼 | 當前文件使用的字元集。 | 是——切換或重新載入 |
| 行尾 | LF 或 CRLF。 | 是——轉換 |
| 語言 | 高亮語言。 | 是——手動覆蓋 |
| 計數 | 文件行數與字元數。 | 否 |
| 自動儲存 | 最近一次工作階段寫入時間。 | 否 |
為什麼計數與 Finder 不一致
行數按緩衝區中的換行符統計;字元數是緩衝區長度,不是磁碟位元組數。多位元組編碼下兩者必然不同,這是預期行為。
進度指示
比較與後台高亮會在狀態區域顯示進度。沒有指示時,說明後台沒有任務在跑。