Shougo / ddu-ui-ff

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

New `ddu-ff-filter-default` can be opened for many times #91

Closed ryu-ichiroh closed 1 year ago

ryu-ichiroh commented 1 year ago

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

Problems summary

Expected

ddu-ff-filter-default should be opened only once.

Environment Information

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

packadd denops.vim
packadd ddu.vim
packadd ddu-ui-ff
packadd ddu-filter-matcher_substring
packadd ddu-kind-file
packadd ddu-source-file_rec

call ddu#custom#patch_global({
    \   'ui': 'ff',
    \   'uiParams': {
    \     'ff': { 'startFilter': v:true },
    \   },
    \   'sourceOptions': {
    \     '_': { 'matchers': ['matcher_substring'] },
    \   },
    \   'kindOptions': {
    \     'file': { 'defaultAction': 'open' }
    \   }
    \ })

nmap <space>f <Cmd>call ddu#start(#{ sources: [#{ name: 'file_rec' }] })<CR>

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

  1. open with minimal vimrc
  2. press <space>f to open ddu ff
  3. press <Esc>
  4. press <space>f again

Screenshot (if possible)

Screenshot 2023-06-06 at 16 19 13

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

No message

Shougo commented 1 year ago

Fixed.