Closed nabezokodaikon closed 5 months ago
Please don't use lua script for the reproduce instruction.
I have created the minimal config.
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> N
\ <Cmd>call ddu#ui#do_action('itemAction', {'name': 'newFile'})<CR>
nnoremap <buffer> <C-l>
\ <Cmd>call ddu#ui#do_action('redraw')<CR>
endfunction
We apologize for the inconvenience. When I performed the following steps with that vimscript, it was reproduced.
$ mkdir -p foo/bar
$ cd foo
$nvim
toggle
operation on filer.newFile
operation with filer.redraw
operation with filer.Thank you.
Fixed. Please update ddu.vim.
Thank you!
Problems summary
Items appear redundant when redrawn.
Expected
Items are no longer redundant when redrawn.
Environment Information
ddu-ui-filer version (SHA1): 94ad1d215fd48a4ef2311532a7383d44370ed53c
denops.vim version (SHA1): bcc88ca61f1edcbe364dbfb4967204193efc6e9a
deno version(
deno -V
output): deno 1.42.4OS: Linux
neovim/Vim
:version
output: NVIM v0.10.0-dev-3023+g499070148Provide a minimal init.vim/vimrc without plugin managers (Required!)
init.lua
How to reproduce the problem from neovim/Vim startup (Required!)
$ mkdir -p foo/bar
$ cd foo
$ nvim
:lua vim.fn['ddu#start'] { ui = 'filer', resume = true, sync = true, sources = { {name = 'file'} }, sourceOptions = { file = { columns = { 'filename' }, path = vim.fn.getcwd() } } }
:call ddu#ui#do_action('expandItem', {'mode': 'toggle'})
:call ddu#ui#do_action('itemAction', {'name': 'newFile'})
hoge.txt
file.:call ddu#ui#do_action('redraw')
Screenshot (if possible)