refactor: remove trash adapter from core #210

Merged
barrettruth merged 2 commits from refactor/remove-trash into canola 2026-03-20 17:25:49 +00:00
barrettruth commented 2026-03-20 04:39:52 +00:00

Problem

The trash adapter (~900 lines across freedesktop, mac, and windows implementations) belongs in canola-collection, not core. The delete_to_trash config flag in the files adapter couples the files adapter to the trash adapter.

Solution

Remove delete_to_trash config, toggle_trash action, --trash command flag, canola-trash:// scheme registration, all trash adapter files, trash highlight groups, trash virtual text rendering, and trash_spec.lua. Trash moves to canola-collection as canola-trash.

## Problem The trash adapter (~900 lines across freedesktop, mac, and windows implementations) belongs in `canola-collection`, not core. The `delete_to_trash` config flag in the files adapter couples the files adapter to the trash adapter. ## Solution Remove `delete_to_trash` config, `toggle_trash` action, `--trash` command flag, `canola-trash://` scheme registration, all trash adapter files, trash highlight groups, trash virtual text rendering, and `trash_spec.lua`. Trash moves to canola-collection as `canola-trash`.
Sign in to join this conversation.
No description provided.