Repository navigation
Configuration en
中文 · English
Lineae stores interface preferences and shortcuts in YAML. apps/web/config.yaml in the repository holds the defaults and is the reference for every available key; user changes are kept in browser-local storage.
- Defaults ship with the app and are merged at startup with locally saved overrides.
- Local changes are written to
localStorageunderlineae.config, storing only the modified keys. - "File → Export YAML" exports the merged configuration; "File → Import YAML" applies a configuration file and persists it immediately.
- If parsing or validation fails, the status bar shows the reason and the last valid configuration stays in effect.
Unknown keys are rejected. Typos are not silently ignored — you get an
Unknown settingerror.
version: 2
typesetting:
defaultEngine: lualatex # lualatex | xelatex | pdflatex
interface:
sourceFontSize: 16 # source-view font size, integer 11–32 (px)
toolbarAutoHide: false # auto-hide the ribbon in Document view
sourceToolbarAutoHide: true
sidebar:
files: true # file tree
includes: true # file includes
outline: true # outline
citations: false # citations
language: auto # auto | en | zh-CN | zh-Hant
theme: system # system | light | dark
zoom: 100 # integer 50–300, percent
zoomOnCtrlWheel: true # Ctrl+wheel / trackpad pinch zooms the document
continuedTables: true # split multi-page tables and repeat the header
formattingMarks: true # show paragraph marks and other formatting symbols
caretMotion: true # caret movement animation
toolbar: [open, saveAs, download, language, assets]
editing:
indentOnSave: true # format indentation on explicit save
smartFences: true # auto-complete $, \( \) and other math fences
autoReplaceLigatures: false
ligatures:
ff: ff
fi: fi
fl: fl
ffi: ffi
ffl: ffl
keybindings:
chordTimeoutMs: 1500 # chord timeout, 100–10000 ms
global:
save: [ctrl+s, mod+s]
open: [mod+o, ctrl+o]
saveAs: [mod+shift+s, ctrl+shift+s]
newProject: [mod+shift+n, ctrl+shift+n]
openProject: [mod+shift+o, ctrl+shift+o]
toggleFiles: mod+p
documentMode: mod+e 1
sourceMode: mod+e 2
splitMode: mod+e 3
settings: [mod+comma, ctrl+comma]
toggleRibbon: mod+alt+r
shortcutPriority: null # "shortcut priority" toggle, unbound by default
formattingMarks: mod+8
zoomIn: [ctrl+equal, mod+equal, ctrl+plus, mod+plus, ctrl+shift+plus, mod+shift+plus]
zoomOut: [ctrl+minus, mod+minus]
zoomReset: [mod+0, ctrl+0]
editor:
insertDisplayMath: mod+f
insertInlineMath: mod+shift+f
insertEquation: mod+alt+f
insertCases: mod+e shift+c
toggleBox: mod+e b
editMath: mod+e e
alignLeft: mod+e l
alignRight: mod+e r
alignCenter: mod+e i
find: mod+e f
leaveEnvironment: [mod+j, ctrl+j]
leaveAllEnvironments: [mod+shift+j, ctrl+shift+j]
leaveFile: [mod+alt+j, ctrl+alt+j]
# Browsers reserve Ctrl+T and never deliver it to the page; Ctrl+E T is the alias.
toggleContextMarker: [mod+e t, mod+alt+t]
ignoreBrowserZoomReset: null
literalBacktick: alt+backtick
undo: mod+z
redo: [mod+y, mod+shift+z]
toggleBold: mod+b
toggleItalic: null
toggleStrike: null
toggleUnderline: null
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
dollar: '$'
toggleSuperscript: [mod+6, ctrl+6]
toggleSubscript: [mod+shift+minus, ctrl+shift+minus]
codeLanguage: mod+e shift+l
insertTable: mod+shift+6
openTikz: mod+shift+t
paragraph:
toggleIndent: [mod+i, ctrl+i]
table:
addRow: mod+e shift+r
addColumn: mod+e shift+c
deleteRow: mod+e x
deleteColumn: mod+e y
math:
superscript: [mod+6, ctrl+6]
subscript: [mod+minus, ctrl+minus]
leaveEnvironment: [mod+j, ctrl+j]
leaveFormula: [mod+shift+j, ctrl+shift+j]
leaveFile: [mod+alt+j, ctrl+alt+j]
addRow: mod+e r
addColumn: mod+e c
toggleDisplayStyle: mod+e t
literalFence: mod+e shift+p
left: mod+l
right: mod+r
frac: mod+f
sqrt: [mod+2, ctrl+2]
indexedRoot: [mod+shift+2, ctrl+shift+2]
int: mod+i
matrix: [mod+shift+m, ctrl+shift+m]
pmatrix: [mod+m, ctrl+m]
bmatrix: [mod+alt+m, ctrl+alt+m]
Bmatrix: [mod+alt+shift+m, ctrl+alt+shift+m]
sum: [mod+shift+s, ctrl+shift+s, ctrl+alt+s]
prod: mod+shift+p
iint: [mod+shift+i, ctrl+shift+i]
iiint: [mod+alt+shift+i, ctrl+alt+shift+i]
oint: alt+i
oiint: alt+shift+i
undo: mod+z
redo: [mod+y, mod+shift+z]
palette: backslash
nextSlot: tab
previousSlot: shift+tab
enterLine: enter
eraseObject: [backspace, delete]
source:
find: mod+f
replace: mod+h
undo: mod+z
redo: [mod+y, mod+shift+z]
zoomIn: [mod+equal, mod+plus]
zoomOut: mod+minus
zoomReset: mod+0
indent: tab
outdent: shift+tab
complete: ctrl+space
system:
copy: mod+c
cut: mod+x
paste: mod+v
selectAll: mod+a| Notation | Meaning |
|---|---|
ctrl+s |
a single key combination |
ctrl+e c |
a chord: press Ctrl+E, release, then press C
|
[ctrl+y, mod+shift+z] |
multiple equivalent bindings |
null |
explicitly disable the command |
mod |
Ctrl on Windows/Linux, Cmd on macOS |
Available modifiers: mod, ctrl, meta, alt, shift. A shortcut has at most two segments; the first must contain ctrl, alt, or meta (or a function key), and the second may be a normal character but not Escape. mod becomes Command on macOS and Ctrl on Windows/Linux; an explicit meta/cmd is never converted. Uppercase letters mean Shift plus the letter. In chords, backslash may be written backslash and comma as comma.
| Setting | Allowed values |
|---|---|
version |
must be 2
|
typesetting.defaultEngine |
lualatex, xelatex, pdflatex
|
interface.language |
auto, en, zh-CN, zh-Hant
|
interface.theme |
system, light, dark
|
interface.zoom |
integer 50–300 |
interface.sourceFontSize |
integer 11–32 |
interface.toolbar |
subset of open, saveAs, download, language, assets, no repeats |
interface.* toggles |
true / false
|
editing.ligatures keys |
2–8 ASCII letters |
editing.ligatures values |
a single character, or null to disable |
keybindings.chordTimeoutMs |
integer 100–10000 |
Old version: 1 configurations are migrated on read: interface.language and interface.zoom are kept, and legacy keybindings.math entries moveToSuperscript, moveToSubscript, and moveAfterParent map onto the new structure.
Change only the theme and zoom:
version: 2
interface:
theme: dark
zoom: 120Merging overrides only the listed keys; everything else stays at its default.
Make Ctrl+F insert a fraction in prose too (not recommended):
version: 2
keybindings:
editor:
find: null
math:
frac: [ctrl+f]Change the chord timeout:
version: 2
keybindings:
chordTimeoutMs: 800