Skip to content

Commit

Permalink
feat(trash): support for deleting to windows recycle bin (#243)
Browse files Browse the repository at this point in the history
* feat(windows-trash): support for deleting to windows trash

* feat(windows-trash): add support for view, restore and purge

* fix(windows-trash): undefined path on M.list

* chore(windows-trash): modify comments

* fix(windows-trash): show correct original_path

* fix(windows-trash): add self to powershell_date_grammar

* fix(windows-trash-support): parse deleted date as number

* fix(fs): do not add innecesary \\ on Windows

* feat: extend windows trash adapter

* perf(windows-trash): powershell -> libuv (move, purge and copy)

* fix: don't prompt to save when opening trashed file

* lint: fix luacheck error

* lint: fix luacheck errors

* lint: luacheck error

---------

Co-authored-by: Steven Arcangeli <[email protected]>
  • Loading branch information
TheLeoP and stevearc authored Jan 3, 2024
1 parent 523b614 commit 553b7a0
Show file tree
Hide file tree
Showing 5 changed files with 494 additions and 31 deletions.
2 changes: 1 addition & 1 deletion lua/oil/adapters/trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local fs = require("oil.fs")
if fs.is_mac then
return require("oil.adapters.trash.mac")
elseif fs.is_windows then
error("Trash is not implemented yet on Windows")
return require("oil.adapters.trash.windows")
else
return require("oil.adapters.trash.freedesktop")
end
Loading

0 comments on commit 553b7a0

Please sign in to comment.