Repository navigation
Configuration
AminiamEva edited this page Nov 13, 2026
·
7 revisions
Lineae 的界面偏好和快捷键使用 YAML 配置。仓库里的 apps/web/config.yaml 是默认值,也是全部可用键的参考;用户修改后的内容保存在浏览器本地。
- 默认配置随应用打包,启动时与本地保存的覆盖值合并。
- 本地修改写入
localStorage的lineae.config,只保存被改动的部分。 - 「文件 → 导出 YAML」导出合并后的完整配置;「文件 → 导入 YAML」应用一个配置文件并立即持久化。
- 配置解析或校验失败时,界面在状态栏显示原因,并继续使用上一份有效配置。
未知键会被拒绝。拼写错误不会静默忽略,而是直接报
Unknown setting。
version: 2
interface:
language: auto # auto | en | zh-CN
theme: system # system | light | dark
zoom: 100 # 50–300 的整数,百分比
zoomOnCtrlWheel: true # Ctrl+滚轮 / 触摸板捏合缩放文档
formattingMarks: true # 显示段落标记等格式符号
caretMotion: true # 光标移动动画
toolbar: [open, saveAs, download, language, assets]
editing:
smartFences: true # 自动补全 $、\( \) 等数学围栏
autoReplaceLigatures: false
ligatures:
ff: ff
fi: fi
fl: fl
ffi: ffi
ffl: ffl
keybindings:
chordTimeoutMs: 1500 # 组合序列的超时,100–10000 ms
global:
save: [ctrl+s, meta+s]
zoomIn: [ctrl+=, meta+=, ctrl+plus, meta+plus, ctrl+shift+plus, meta+shift+plus]
zoomOut: [ctrl+-, meta+-]
zoomReset: ctrl+0
editor:
insertDisplayMath: ctrl+e c
toggleBox: ctrl+e b
editMath: ctrl+e e
alignLeft: ctrl+e l
alignRight: ctrl+e r
alignCenter: ctrl+e i
find: ctrl+f
leaveEnvironment: ctrl+j
leaveAllEnvironments: ctrl+shift+j
# 浏览器保留 Ctrl+T,改用 Ctrl+Alt+T;Ctrl+E T 是等价别名。
toggleContextMarker: [ctrl+alt+t, ctrl+e t]
ignoreBrowserZoomReset: null
literalBacktick: alt+backtick
undo: mod+z
redo: [mod+y, mod+shift+z]
toggleBold: mod+b
toggleItalic: mod+i
toggleStrike: mod+shift+s
toggleCode: null
toggleCodeBlock: mod+alt+c
toggleBlockquote: null
toggleBulletList: mod+shift+8
toggleOrderedList: mod+shift+7
paragraph: mod+alt+0
section: mod+alt+1
subsection: mod+alt+2
subsubsection: mod+alt+3
hardBreak: mod+enter
paragraph:
toggleIndent: ctrl+i
table:
addRow: ctrl+e r
addColumn: ctrl+e c
math:
superscript: ctrl+6
subscript: ctrl+-
leaveEnvironment: [ctrl+0, ctrl+j]
leaveFormula: ctrl+shift+j
addRow: ctrl+e r
addColumn: ctrl+e c
toggleDisplayStyle: ctrl+e t
literalFence: ctrl+e shift+t
left: ctrl+l
right: ctrl+r
frac: ctrl+f
sqrt: ctrl+2
indexedRoot: ctrl+shift+2
int: ctrl+i
matrix: ctrl+m
pmatrix: ctrl+shift+m
bmatrix: ctrl+alt+m
Bmatrix: ctrl+alt+shift+m
sum: [ctrl+shift+s, ctrl+alt+s]
prod: ctrl+shift+p
iint: ctrl+shift+i
iiint: ctrl+alt+shift+i
oint: alt+i
oiint: alt+shift+i
undo: ctrl+z
redo: ctrl+y| 写法 | 含义 |
|---|---|
ctrl+s |
单个组合键 |
ctrl+e c |
组合序列:先 Ctrl+E,松开后再按 C
|
[ctrl+y, mod+shift+z] |
多个等价绑定 |
null |
显式禁用该命令 |
mod |
Windows/Linux 上为 Ctrl,macOS 上为 Cmd
|
可用修饰键:ctrl、meta、alt、shift。快捷键最多包含两段;第一段必须含 ctrl、alt 或 meta(也可以是功能键),第二段可以是普通字符,不能是 Escape。
| 设置 | 允许值 |
|---|---|
version |
必须是 2
|
interface.language |
auto、en、zh-CN
|
interface.theme |
system、light、dark
|
interface.zoom |
50–300 的整数 |
interface.toolbar |
open、saveAs、download、language、assets 的子集,不可重复 |
interface.* 开关 |
true / false
|
editing.ligatures 的键 |
2–8 个英文字母 |
editing.ligatures 的值 |
单个字符,或 null 表示不替换 |
keybindings.chordTimeoutMs |
100–10000 的整数 |
version: 1 的旧配置会在读取时自动迁移:interface.language、interface.zoom 保留,旧版 keybindings.math 里的 moveToSuperscript、moveToSubscript、moveAfterParent 会映射到新结构。
只改主题和缩放:
version: 2
interface:
theme: dark
zoom: 120合并时只覆盖列出的键,其余保持默认。
让 Ctrl+F 在正文里也插入分式(不推荐):
version: 2
keybindings:
editor:
find: null
math:
frac: [ctrl+f]换一个序列超时:
version: 2
keybindings:
chordTimeoutMs: 800