feat(trash): support for deleting to windows recycle bin (#243)
* 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 <506791+stevearc@users.noreply.github.com>
This commit is contained in:
parent
523b61430c
commit
553b7a0ac1
5 changed files with 494 additions and 31 deletions
|
|
@ -87,7 +87,7 @@ M.posix_to_os_path = function(path)
|
|||
if vim.startswith(path, "/") then
|
||||
local drive = path:match("^/(%a+)")
|
||||
local rem = path:sub(drive:len() + 2)
|
||||
return string.format("%s:\\%s", drive, rem:gsub("/", "\\"))
|
||||
return string.format("%s:%s", drive, rem:gsub("/", "\\"))
|
||||
else
|
||||
local newpath = path:gsub("/", "\\")
|
||||
return newpath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue