fix: opt in to collection features by config presence #49
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/canola-collection!49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/opt-in-collection-features"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
canola-collection registered every optional feature at startup, so users paid setup cost for adapters and git integration they never configured. Trash still used
vim.g.canola.delete.trash, andcanola-gitkept its ownenabledtoggle, which left the collection with an inconsistent config model.Solution
Treat every collection feature as opt-in by config presence: only register SSH, S3, FTP, trash, and git when their
vim.g.canola_*table is defined, with{}enabling defaults. Move trash opt-in tovim.g.canola_trash, remove the remaining extension-sideenabledhandling fromcanola-git, and update docs/specs to cover the presence-based model. Closes #46.