Chapter 09 · Editing and files编辑与文件編輯與檔案
Split view and sessions分屏视图与会话分割檢視檢視與工作階段
Split view
- Toggle with
⌘\or from the view menu; remove it the same way. - The divider can be dragged to change the ratio.
- Tabs can be moved to the other pane from the tab context menu, by dragging a tab across, or by dragging a tab onto an empty editor area.
- Dragging a tab outside the window creates a separate window.
Only two panes are supported in 1.0.110. Each pane keeps its own scroll position and caret.
Session autosave
| Setting | Default | Range |
|---|---|---|
| Autosave interval | 30 seconds | 5–60 seconds |
| Save session on quit | Enabled | — |
| Restore on launch | Enabled | — |
The interval and the defaults above come from the app's General preferences; the exact default follows the build's configuration.
What gets restored
- Open tabs, their order and the active tab.
- Split-view layout and divider ratio.
- Caret position and scroll offset per document.
- Bookmarks.
- Unsaved buffers, written to a temporary directory so they survive a crash.
Window clamping
If the display layout changed since the session was saved — an external monitor unplugged, a resolution change — the restored window is clamped into a visible screen. If there is no intersection at all, it falls back to the main display.
When not to rely on sessions
Sessions are a convenience, not a backup. Work you intend to keep should be saved to a real file; the temporary copies are cleaned up once they are no longer needed.
分屏
- 用
⌘\或视图菜单开启/移除分屏。 - 拖动分隔线可调整比例。
- 标签可通过右键菜单、拖拽标签或拖到空的编辑区移动到另一栏。
- 把标签拖出窗口会生成独立窗口。
1.0.110 只支持两栏。每栏各自保持滚动位置与光标。
会话自动保存
| 设置 | 默认 | 范围 |
|---|---|---|
| 自动保存间隔 | 30 秒 | 5–60 秒 |
| 退出时保存会话 | 开启 | — |
| 启动时恢复 | 开启 | — |
间隔与默认值来自应用通用偏好;具体默认值以构建配置为准。
会恢复哪些内容
- 打开的标签、顺序与当前活动标签。
- 分屏布局与分隔比例。
- 每个文档的光标位置与滚动偏移。
- 书签。
- 未保存内容(写入临时目录,崩溃后仍可找回)。
窗口钳制
如果保存会话后显示器布局发生变化(拔掉外接屏、改分辨率),恢复的窗口会被钳制到可见屏幕内;完全无交集时回落到主屏。
什么时候别依赖会话
会话是便利功能,不是备份。需要保留的工作应保存成真实文件;临时副本在不再需要时会被清理。
分割檢視
- 用
⌘\或檢視選單開啓/移除分割檢視。 - 拖動分隔線可調整比例。
- 標籤可透過右鍵選單、拖曳標籤或拖到空的編輯區移動到另一欄。
- 把標籤拖出視窗會生成獨立視窗。
1.0.110 只支援兩欄。每欄各自保持捲動位置與游標。
工作階段自動儲存
| 設定 | 預設 | 範圍 |
|---|---|---|
| 自動儲存間隔 | 30 秒 | 5–60 秒 |
| 結束時儲存工作階段 | 開啓 | — |
| 啓動時恢復 | 開啓 | — |
間隔與預設值來自應用通用偏好;具體預設值以構建配置為準。
會恢復哪些內容
- 開啟的標籤、順序與當前活動標籤。
- 分割檢視佈局與分隔比例。
- 每個文件的游標位置與捲動偏移。
- 書籤。
- 未儲存內容(寫入臨時目錄,崩潰後仍可找回)。
視窗鉗制
如果儲存工作階段後顯示器佈局發生變化(拔掉外接屏、改解析度),恢復的視窗會被鉗制到可見螢幕內;完全無交集時回落到主屏。
什麼時候別依賴工作階段
工作階段是便利功能,不是備份。需要保留的工作應儲存成真實檔案;臨時副本在不再需要時會被清理。