fix(config): add delete.trash option for trash adapter integration #291

Merged
barrettruth merged 1 commit from fix/delete-trash-config into canola 2026-04-04 15:05:13 +00:00
barrettruth commented 2026-04-04 15:02:08 +00:00

Summary

  • Add trash field to canola.DeleteConfig (default: false)
  • Update vimdoc: migration table, config reference, defaults, trash section
  • Groups trash with related delete options (wipe, recursive)

The companion PR in canola-collection reads config.delete.trash to
intercept file deletions and redirect them to the OS trash adapter.

Companion: barrettruth/canola-collection#42

Test plan

  • Set delete = { trash = true } in vim.g.canola
  • Delete a file in canola, confirm dialog shows "TRASH" not "DELETE"
  • File appears in freedesktop trash (~/.local/share/Trash/)

Closes #290

## Summary - Add `trash` field to `canola.DeleteConfig` (default: `false`) - Update vimdoc: migration table, config reference, defaults, trash section - Groups trash with related delete options (`wipe`, `recursive`) The companion PR in canola-collection reads `config.delete.trash` to intercept file deletions and redirect them to the OS trash adapter. Companion: barrettruth/canola-collection#42 #### Test plan - [x] Set `delete = { trash = true }` in `vim.g.canola` - [x] Delete a file in canola, confirm dialog shows "TRASH" not "DELETE" - [x] File appears in freedesktop trash (`~/.local/share/Trash/`) Closes #290
Sign in to join this conversation.
No description provided.