Shougo / ddu-ui-ff

Fuzzy finder UI for ddu.vim
MIT License
55 stars 26 forks source link

Filter does not work properly #105

Closed uga-rosa closed 1 year ago

uga-rosa commented 1 year ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

The cursor blows up every time you type a letter.

Expected

Cursor does not move

Environment Information

All plugins are latest.

FYI: The cause commit is 367833a481c92a4078773582833038195676f04a

Provide a minimal init.vim/vimrc without plugin managers (Required!)

set runtimepath+=/path/to/denops.vim
set runtimepath+=/path/to/ddu.vim
set runtimepath+=/path/to/ddu-ui-ff
set runtimepath+=/path/to/ddu-source-file
set runtimepath+=/path/to/ddu-filter-matcher_substring

call ddu#custom#patch_global(#{
      \ ui: 'ff',
      \ sources: [#{name: 'file'}],
      \})

autocmd FileType ddu-ff call s:ddu_my_settings()
function! s:ddu_my_settings() abort
  nnoremap <buffer><silent> i
        \ <Cmd>call ddu#ui#ff#do_action('openFilterWindow')<CR>
endfunction

How to reproduce the problem from neovim/Vim startup (Required!)

  1. call ddu#start({})
  2. Input i to open filter window.
  3. When you type something at random, the cursor is blown up to the ddu-default window.

Screenshot (if possible)

Upload the log messages by :redir and :message (if errored)

Shougo commented 1 year ago

Reproduced.

Shougo commented 1 year ago

Fixed.