Closed ogaken-1 closed 11 months ago
Executing chooseAction in ff's UI, and selecting the open action results in files being opened in the ff window.
https://github.com/Shougo/ddu-source-action/assets/60453380/a111d341-6d4e-43b4-a840-fe2e706bb638
The necessary parts for reproduction are as follows:
init.vim
let &rtp = $VIMRUNTIME const s:packpath = expand('<script>:p:h') let &packpath = s:packpath const s:ToPackPath = { name -> s:packpath .. '/pack/github.com/opt/' .. name } function s:PackAdd(ghrepo) abort const plugin = #{ \ path: s:ToPackPath(a:ghrepo), \ repo: $'https://github.com/{a:ghrepo}.git', \ name: a:ghrepo, \ } if !isdirectory(plugin.path) call system(['git', 'clone', plugin.repo, plugin.path]) endif exec 'packadd' plugin.name endfunction call s:PackAdd('vim-denops/denops.vim') call s:PackAdd('Shougo/ddu.vim') call s:PackAdd('Shougo/ddu-ui-ff') call s:PackAdd('Shougo/ddu-kind-file') call s:PackAdd('Shougo/ddu-source-action') call s:PackAdd('Shougo/ddu-source-file') call ddu#custom#patch_global(#{ \ ui: 'ff', \ uiParams: #{ \ ff: #{ \ split: 'floating', \ }, \ }, \ kindOptions: #{ \ action: #{ \ defaultAction: 'do', \ }, \ }, \ }) command Ddu call ddu#start(#{ sources: [ 'file' ] }) autocmd FileType ddu-ff nnoremap a <Cmd>call ddu#ui#do_action('chooseAction')<CR> autocmd FileType ddu-ff nnoremap <CR> <Cmd>call ddu#ui#do_action('itemAction')<CR>
nvim -u init.vim
:Ddu
Reproduced.
Fixed.
Executing chooseAction in ff's UI, and selecting the open action results in files being opened in the ff window.
https://github.com/Shougo/ddu-source-action/assets/60453380/a111d341-6d4e-43b4-a840-fe2e706bb638
The necessary parts for reproduction are as follows:
Minimal configuration
init.vim
Reproduction Steps
nvim -u init.vim
:Ddu
command