chadtree
chadtree copied to clipboard
Cannot delete on windows
trafficstars
OS: windows 10 neovim version: 0.5.0
Problem:
Trying to delete a file named "test" located in C:\Users\henry
Also cannot delete files in other directories.

Error message:
[WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Users\henry\AppData\Local\nvim-data\site\pack\packer\start\chadtree\chadtree\transitions\delete.py", line 108, in c2
c1()
File "C:\Users\henry\AppData\Local\nvim-data\site\pack\packer\start\chadtree\chadtree\transitions\delete.py", line 102, in c1
check_call(command, stdin=DEVNULL, stdout=PIPE, stderr=PIPE, cwd=cwd)
File "C:\Users\henry\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Users\henry\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\henry\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\henry\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
init.vim
let $NVIM_CONFIG_PATH = stdpath('config')
nnoremap <space> <nop>
let mapleader = " "
let maplocalleader = ','
if has('win32')
let g:python_host_prog = $USERPROFILE.'/virtualenvs/neovim2/Scripts/python.exe'
let g:python3_host_prog = $USERPROFILE.'/virtualenvs/neovim3/Scripts/python.exe'
else
let g:python_host_prog = $PYENV_ROOT.'/versions/neovim2/bin/python'
let g:python3_host_prog = $PYENV_ROOT.'/versions/neovim3/bin/python'
endif
:lua << EOF
require('packer').startup(function()
use 'wbthomason/packer.nvim'
end)
vim.api.nvim_set_keymap('n', '<Leader>v', '<Cmd>CHADopen<CR>', { noremap = true})
local chadtree_settings = {
options = {
show_hidden = false
},
keymap = {
refresh = {"<c-l>"},
change_dir = {"b"},
change_focus = {"l"},
change_focus_up = {"h"},
select = {"<space>"},
clear_selection = {"m"},
new = {"N"},
cut = {"v"},
trash = {"d", "x"},
delete = {"`"},
toggle_hidden = {"."},
},
ignore = {
name_exact = {".mypy_cache", ".gitignore", "__pycache__", ".git", },
name_glob = {".*"}
}
}
vim.api.nvim_set_var("chadtree_settings", chadtree_settings)
EOF