Shougo / ddu-ui-ff

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

Fix "No matching autocommands" error #146

Closed mityu closed 6 months ago

mityu commented 6 months ago

This PR suppresses "No matching autocommands" message on opening/closing filter window like this.

No matching autocommands: User Ddu:ui:ff:openFilterWindow
No matching autocommands: User Ddu:ui:ff:closeFilterWindow

How to reproduce

  1. vimrc.vim
set nocompatible

set runtimepath^=~/.cache/vim/pack/minpac/opt/denops.vim
set runtimepath^=~/.cache/vim/pack/minpac/opt/ddu.vim
set runtimepath^=~/.cache/vim/pack/minpac/opt/ddu-ui-ff

call ddu#custom#patch_global(#{ ui: 'ff' })

autocmd FileType ddu-ff nnoremap i <Cmd>call ddu#ui#do_action('openFilterWindow')<CR>
autocmd FileType ddu-ff nnoremap q <Cmd>call ddu#ui#do_action('quit')<CR>

nnoremap @ <Cmd>call ddu#start()<CR>
  1. Open Vim with vim -u /path/to/vimrc.vim
  2. Type @ to start ddu.
  3. Type i<CR> to open and close filter window.
  4. Check messages by :mes

Environment

mityu commented 6 months ago

Hmm..., this PR likely reverts this fix: https://github.com/Shougo/ddu-ui-ff/commit/292d97640333d3508ad3377c890ae0ea8227a0e9

Does this PR give some other problems...?

Shougo commented 6 months ago

Merged.

Shougo commented 6 months ago

Does this PR give some other problems...?

I don't know...

mityu commented 6 months ago

Does this PR give some other problems...?

I don't know...

OK, thank you.