Settings are read from an optional RoyiTextEditor.yaml beside the
executable.
It is read once at startup; restart the editor after changing it.
The editor never writes it.
A missing file gives the defaults.
Problems are shown on the status line:
An invalid setting (an unknown key, a value out of range) keeps its
default; the other settings still apply.
Invalid YAML (a syntax error, an anchor, tag or alias) ignores the whole
file: every setting keeps its default.
Plain YAML only: maps, lists and values, one document, no anchors, tags
or aliases.
A complete file with the defaults:
# RoyiTextEditor.yaml: every setting is optional; delete what you don't change.
palette:
# Commands run from the palette that Ctrl+P lists first, 0 to 20.
recentCount: 3
editor:
# Most selections Select All Matches, Select All Occurrences and the
# cursor commands may create, 1 to 1,000,000. Larger requests are refused.
multiCursorLimit: 10000
search:
# Memory one Replace All may use, in MiB, 1 to 4096. A larger replacement
# is refused before it starts.
replaceAllMaxMiB: 512
syntax:
# Files larger than this many MiB open as plain text, 1 to 1024.
# Highlighting a large file costs memory: about 30 to 130 bytes per byte.
maxFileMiB: 32
# Highlight code embedded in other languages: fenced code blocks and front
# matter in Markdown, <script> and <style> in HTML.
injections: true
spelling:
# Mark misspelled words of plain text and Markdown prose.
enabled: false
# builtin: a word list in the executable.
# hunspell: the .aff / .dic pair named by spelling.hunspell.
# windows: the Windows spell checker (US English must be installed).
engine: builtin
# Base path of the Hunspell files, relative to the executable
# (Dictionaries/en_US means Dictionaries/en_US.aff and en_US.dic).
hunspell: Dictionaries/en_US