Skip to main content

Module text_assistance

Module text_assistance 

Expand description

Process-local view of the shared spelling preferences: the per-user text_assistance section every app’s text fields follow.

Reading the JSON document on every keypress would turn a UX feature into an I/O hot path. We stat the settings file at most once every two seconds and reload it when its modification stamp changes, so Settings changes propagate to running apps without filesystem I/O on every draw or keypress.

Modules§

text_assistance_prefs
The parameters of each action of TextAssistancePrefs.

Structs§

TextAssistancePrefs
TextAssistancePrefsPaths
The typed paths into a TextAssistancePrefs, one per field.

Enums§

TextAssistancePrefsAction
The replayable actions of TextAssistancePrefs, one per #[action] method.

Constants§

AUTO_CORRECT_KEY
CHECK_SPELLING_KEY
SETTINGS_SECTION
SPELLING_LANGUAGE_KEY

Functions§

preferences
Current user preference, cached until settings.json changes.