Shougo / ddu-ui-ff

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

`filterFloatingTitle` is not setted after `updateOptions` #122

Closed kamecha closed 1 year ago

kamecha commented 1 year ago

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

Problems summary

SSIA

Expected

After updateOptions, filterFloatingTitle is setted.

Environment Information

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

nnoremap [ddu] <Nop>
nmap <Space>u [ddu]
nmap <silent> [ddu]f <Cmd>call ddu#start({
            \ 'ui': 'ff',
            \ 'uiParams': {
            \   'ff': {
                        \               'startFilter': v:true,
            \       'split': 'floating',
            \       'floatingBorder': 'rounded'
            \   }
            \ },
            \ })<CR>

autocmd FileType ddu-ff call s:ddu_my_settings()

function! s:ddu_my_settings() abort
    nnoremap <buffer><silent> u
                \ <Cmd>call ddu#ui#ff#do_action('updateOptions', #{
                \   uiParams: #{ 
                \       ff: #{
                \           floatingTitle: 'TitleOK',
                \           filterFloatingTitle: 'FilterNG'
                \       }
                \   }
                \ })<CR>
endfunction

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#ff#do_action('leaveFilterWindow')<CR>
endfunction

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

  1. type <Space> u f to start ddu
  2. type <C-l> to leave filter window
  3. type u in ddu window to fire updateOptions action
  4. then ddu window title is updated, but filter window title is not setted...

Screenshot (if possible)

hoge

Upload the log

messages by :redir and :message (if errored)

Shougo commented 1 year ago

Fixed. Please update ddu.vim.