Closed kamecha closed 8 months ago
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
there are some problem using openFilterWindow like bellow
openFilterWindow
ddu#ui#do_action('closeFilterWindow')
ddu#ui#do_action('redraw', #{ method: 'uiRedraw' })
ddu#ui#do_action('openFilterWindow')
i
A
it works well without these problems.
ddu-ui-ff version (SHA1): 1b39755
denops.vim version (SHA1): b5dfcbc
deno version(deno -V output): deno 1.38.5
deno -V
OS: WSL2 Ubuntu 22.03.4 LTS
neovim/Vim :version output: NVIM v0.10.0-dev-1846+gf31f260f0 Build type: RelWithDebInfo LuaJIT 2.1.1702233742
:version
set rtp+=~/.cache/dein/nvim/repos/github.com/vim-denops/denops.vim set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu.vim set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu-ui-ff function s:update_ui_layout() abort let l:current_options = ddu#custom#get_current() if l:current_options->empty() return endif " ↓ this function order seems to be important call ddu#ui#do_action('redraw', #{ method: 'uiRedraw' }) call ddu#ui#do_action('closeFilterWindow') call ddu#ui#do_action('openFilterWindow') endfunction autocmd VimResized * call s:update_ui_layout() nnoremap [ddu] <Nop> nmap <Space>u [ddu] nmap <silent> [ddu]f <Cmd>call ddu#start(#{ \ ui: 'ff', \ uiParams: #{ \ ff: #{ \ startFilter: v:true, \ } \ } \ })<CR> autocmd FileType ddu-ff-filter call s:ddu_filter_my_settings() function! s:ddu_filter_my_settings() abort inoremap <buffer> <C-l> \ <ESC><Cmd>call ddu#ui#do_action('leaveFilterWindow')<CR> endfunction
<Space>
u
f
<C-l>
leaveFilterWindow
s:update_ui_layout
i or A is inputted to filter window
filter window is opened other place before
:redir
:message
Hm...
I should remove startFilter feature...
startFilter
I will remove the feature. Please wait.
I have removed startFilter option.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
there are some problem using
openFilterWindow
like bellowddu#ui#do_action('closeFilterWindow')
ddu#ui#do_action('redraw', #{ method: 'uiRedraw' })
ddu#ui#do_action('openFilterWindow')
i
orA
is inputted to filter windowddu#ui#do_action('redraw', #{ method: 'uiRedraw' })
ddu#ui#do_action('closeFilterWindow')
ddu#ui#do_action('openFilterWindow')
Expected
it works well without these problems.
Environment Information
ddu-ui-ff version (SHA1): 1b39755
denops.vim version (SHA1): b5dfcbc
deno version(
deno -V
output): deno 1.38.5OS: WSL2 Ubuntu 22.03.4 LTS
neovim/Vim
:version
output: NVIM v0.10.0-dev-1846+gf31f260f0 Build type: RelWithDebInfo LuaJIT 2.1.1702233742Provide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
<Space>
u
f
to start ddu<C-l>
in filter window to fireleaveFilterWindow
actions:update_ui_layout
i
orA
is inputted to filter window ← if the order is above .vimrc, this problem is appeared.Screenshot if possible
i
orA
is inputted to filter windowfilter window is opened other place before
Upload the log messages by
:redir
and:message
(if errored)