Raxol.Core.UserPreferences (Raxol v0.5.0)

View Source

Manages user preferences for the terminal emulator.

Acts as a GenServer holding the preferences state and handles persistence.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the default preferences map. This includes default values for theme, terminal configuration, accessibility settings, and keybindings.

Returns the current theme id as an atom, defaulting to :default if not set or invalid.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

default_preferences()

Returns the default preferences map. This includes default values for theme, terminal configuration, accessibility settings, and keybindings.

get(key_or_path, pid_or_name \\ __MODULE__)

get_all(pid_or_name \\ __MODULE__)

get_theme_id(pid_or_name \\ __MODULE__)

Returns the current theme id as an atom, defaulting to :default if not set or invalid.

reset_to_defaults_for_test!(pid_or_name \\ __MODULE__)

save!(pid_or_name \\ __MODULE__)

set(key_or_path, value, pid_or_name \\ __MODULE__)

start_link(opts \\ [])