From b92ecb04ee3ab875d378d684929040700ec66cb6 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 20 Feb 2026 16:15:27 -0500 Subject: [PATCH] fix(trash): update freedesktop trash specification url Problem: the old URL specifications.freedesktop.org/trash-spec/1.0/ is dead and redirects or 404s. Solution: update to the current URL trash/1.0/ in docs, source, and the generation script. Cherry-picked from: stevearc/oil.nvim#722 --- doc/oil.txt | 2 +- lua/oil/adapters/trash/freedesktop.lua | 2 +- scripts/generate.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/oil.txt b/doc/oil.txt index 8753f87..bf2dc71 100644 --- a/doc/oil.txt +++ b/doc/oil.txt @@ -763,7 +763,7 @@ will be permanently deleted (purged). Linux: Oil supports the FreeDesktop trash specification. - https://specifications.freedesktop.org/trash-spec/1.0/ + https://specifications.freedesktop.org/trash/1.0/ All features should work. Mac: diff --git a/lua/oil/adapters/trash/freedesktop.lua b/lua/oil/adapters/trash/freedesktop.lua index 10c0749..18b7e4c 100644 --- a/lua/oil/adapters/trash/freedesktop.lua +++ b/lua/oil/adapters/trash/freedesktop.lua @@ -1,5 +1,5 @@ -- Based on the FreeDesktop.org trash specification --- https://specifications.freedesktop.org/trash-spec/1.0/ +-- https://specifications.freedesktop.org/trash/1.0/ local cache = require("oil.cache") local config = require("oil.config") local constants = require("oil.constants") diff --git a/scripts/generate.py b/scripts/generate.py index 4e02550..adcab9e 100755 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -362,7 +362,7 @@ will be permanently deleted (purged). Linux: Oil supports the FreeDesktop trash specification. - https://specifications.freedesktop.org/trash-spec/1.0/ + https://specifications.freedesktop.org/trash/1.0/ All features should work. Mac: