Closed nabezokodaikon closed 6 months ago
Sorry for bothering you again. I found a new bug.
When you delete a file, the whole tree closes.
Currently, if you delete a file and then redraw the tree in a closed state, the tree state will be restored.
Deleting a file does not close the tree.
ddu-ui-filer version (SHA1):94ad1d215fd48a4ef2311532a7383d44370ed53c
denops.vim version (SHA1):9dd9ae9da9b8d65916dd44e0e4d881665397de63
deno version(deno -V output):deno 1.43.4
deno -V
OS:Linux
neovim/Vim :version output:NVIM v0.10.0-dev-3023+g499070148
:version
set rtp+=~/work/denops.vim set rtp+=~/work/ddu.vim set rtp+=~/work/ddu-ui-filer set rtp+=~/work/ddu-source-file set rtp+=~/work/ddu-column-filename set rtp+=~/work/ddu-kind-file call ddu#start(#{ \ ui: 'filer', \ resume: v:true, \ sync: v:true, \ sources: [ \ #{name: 'file'}, \ ], \ sourceOptions: #{ \ file: #{ \ columns: ['filename'], \ path: getcwd() \ } \ } \ }) autocmd FileType ddu-filer call s:ddu_filer_my_settings() function s:ddu_filer_my_settings() abort nnoremap <buffer> o \ <Cmd>call ddu#ui#do_action('expandItem', {'mode': 'toggle'})<CR> nnoremap <buffer> D \ <Cmd>call ddu#ui#do_action('itemAction', {'name': 'delete'})<CR> nnoremap <buffer> <C-l> \ <Cmd>call ddu#ui#do_action('redraw')<CR> endfunction
$ mkdir -p foo/bar/hoge/
$ touch foo/bar/hoge/text.txt
$ cd foo
$ nvim
bar
hoge
text.txt
Fixed. Please update ddu.vim.
I updated and confirmed. This issue has been resolved, but when adding new files, the files appear redundant.
Too bad.
Fixed.
I confirmed it. Thank you.
Sorry for bothering you again. I found a new bug.
Problems summary
When you delete a file, the whole tree closes.
Currently, if you delete a file and then redraw the tree in a closed state, the tree state will be restored.
Expected
Deleting a file does not close the tree.
Environment Information
ddu-ui-filer version (SHA1):94ad1d215fd48a4ef2311532a7383d44370ed53c
denops.vim version (SHA1):9dd9ae9da9b8d65916dd44e0e4d881665397de63
deno version(
deno -V
output):deno 1.43.4OS:Linux
neovim/Vim
:version
output:NVIM v0.10.0-dev-3023+g499070148Provide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
$ mkdir -p foo/bar/hoge/
$ touch foo/bar/hoge/text.txt
$ cd foo
$ nvim
bar
directory.hoge
directory.text.txt
file.