Skip to content

feat!: refactor public config contract#45

Draft
adriancmiranda wants to merge 1 commit into
mainfrom
feat/pane-config-contract
Draft

feat!: refactor public config contract#45
adriancmiranda wants to merge 1 commit into
mainfrom
feat/pane-config-contract

Conversation

@adriancmiranda
Copy link
Copy Markdown
Owner

@adriancmiranda adriancmiranda commented May 25, 2026

Summary

Refactor the public configuration contract into nested tables for better structure and future extensibility.

Changes

  • move cache-related options under cache
  • move safety limits under safety
  • move loading text under loading
  • move format lists under image, video, and archive
  • move video opener under video.open
  • make integration toggles explicit with nested enable fields
  • update internal consumers, README examples, and tests

Breaking change

Existing configs using the old flat keys must migrate to the new nested structure.

Old -> New

  • cache_dir -> cache.dir
  • cache_max_age_days -> cache.max_age_days
  • max_file_size -> safety.max_file_size
  • loading_text -> loading.text
  • formats -> image.formats
  • video_formats -> video.formats
  • video_open -> video.open
  • archive_formats -> archive.formats
  • oil = true -> oil = { enable = true }
  • telescope = true -> telescope = { enable = true }

@adriancmiranda adriancmiranda self-assigned this May 25, 2026
@adriancmiranda adriancmiranda force-pushed the feat/pane-config-contract branch 2 times, most recently from 047c50d to f620568 Compare May 25, 2026 01:48
@adriancmiranda adriancmiranda force-pushed the feat/pane-config-contract branch from f620568 to 647d9b7 Compare May 27, 2026 00:52
BREAKING CHANGE: reorganize the public configuration into nested tables for cache, safety, loading, image, video, archive, pane, and integrations.
@adriancmiranda adriancmiranda force-pushed the feat/pane-config-contract branch from 647d9b7 to 5f6f125 Compare May 27, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BREAKING CHANGE enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant