Skip to content

Add commands :set and :reload - #578

Open
VAWVAW wants to merge 6 commits into
ulyssa:mainfrom
VAWVAW:set-command
Open

Add commands :set and :reload#578
VAWVAW wants to merge 6 commits into
ulyssa:mainfrom
VAWVAW:set-command

Conversation

@VAWVAW

@VAWVAW VAWVAW commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Allow the config to be reloaded and specific settings to be changed at runtime.

Most config values under settings are changeable and dirs.downloads is updated on :reload.

todo:

  • cache_policy
  • image_preview.lazy_load
    • That option is used inconsistently anyway and should probably be removed
  • state_event_display
    • need to change the logic to store state events that are not displayed
  • mouse, terminal.enable_extended_keys
    • need to modify the panic hook
  • improve completions and argument parsing
  • add tests

Unsupported options:

  • default_room
    • doesn't make sense to change at runtime
  • image_preview.protocol.font_size
    • option is deprecated
  • terminal.enable_title
    • I think there is no way to restore old value
  • max_log_files, request_timeout, ssl_verify, proxy
    • hard/impossible to change at runtime

Macros should be added in a followup that adds a :map command.

fixes #505
supersedes #510
fixes #367
fixes #177

@VAWVAW

VAWVAW commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

I believe this is useful in its current state and the missing settings can be added in follow up PRs.

@VAWVAW
VAWVAW marked this pull request as ready for review August 21, 2026 16:13
@VAWVAW
VAWVAW force-pushed the set-command branch 2 times, most recently from fbcb7b1 to 355cf81 Compare August 22, 2026 20:55
@VAWVAW
VAWVAW force-pushed the set-command branch 2 times, most recently from 197ff26 to b61a490 Compare September 2, 2026 14:18
@VAWVAW
VAWVAW force-pushed the set-command branch 2 times, most recently from 1b18fea to f5fdbb0 Compare September 4, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant