Closed ryota2357 closed 1 year ago
If I specify splitDirection: 'topleft', several unexpected behaviors occur (please see reproduce section).
splitDirection: 'topleft'
Works same as splitDirection: 'belowright'
splitDirection: 'belowright'
deno -V
deno 1.37.2 (release, aarch64-apple-darwin) v8 11.8.172.13 typescript 5.2.2
:version
NVIM v0.10.0-dev-1428+g7a5effb0f-Homebrew Build type: Release LuaJIT 2.1.1696795921
if !has("nvim") set nocompatible filetype plugin indent on syntax enable endif let s:plugins = [ \ 'vim-denops/denops.vim', \ 'Shougo/ddu.vim', \ 'Shougo/ddu-ui-filer', \ 'ryota2357/ddu-column-icon_filename', \ 'Shougo/ddu-source-file', \ 'Shougo/ddu-kind-file', \ ] for item in s:plugins execute 'set runtimepath+=~/.cache/dein/repos/github.com/' .. item endfor call ddu#custom#patch_global(#{ \ ui: 'filer', \ sources: [{'name': 'file'}], \ sourceOptions: #{ \ _: { 'columns': ['icon_filename'] } \ }, \ uiOptions: #{ \ _: #{ toggle: v:true } \ }, \ uiParams: #{ \ _: #{ splitDirection: 'topleft' } \ }, \ kindOptions: #{ \ file: #{ \ defaultAction: 'open', \ }, \ } \ }) autocmd FileType ddu-filer call s:ddu_my_settings() function! s:ddu_my_settings() abort nnoremap <buffer><CR> <Cmd>call ddu#ui#sync_action('itemAction')<CR> nnoremap <buffer>o <Cmd>call ddu#ui#async_action('itemAction', #{ params: #{ command: 'tab drop' } })<CR> endfunction
toggle
:call ddu#start()
https://github.com/Shougo/ddu-ui-filer/assets/61523777/049d47d9-f04b-47f7-81ea-cfddf3ddeeeb
tab drop
https://github.com/Shougo/ddu-ui-filer/assets/61523777/7311126e-e6ec-4f00-8284-020e8a29b670
Reproduced. close {winid} seems broken. I don't know why it does not work.
close {winid}
You can test by close {winid} manually.
Fixed.
Problems summary
If I specify
splitDirection: 'topleft'
, several unexpected behaviors occur (please see reproduce section).Expected
Works same as
splitDirection: 'belowright'
Environment Information
deno -V
output)::version
output:Provide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
toggle
does not works.:call ddu#start()
then open filer.:call ddu#start()
to close filer.https://github.com/Shougo/ddu-ui-filer/assets/61523777/049d47d9-f04b-47f7-81ea-cfddf3ddeeeb
open with tab drop
:call ddu#start()
then open filer.:call ddu#start()
then re-open filer.tab drop
https://github.com/Shougo/ddu-ui-filer/assets/61523777/7311126e-e6ec-4f00-8284-020e8a29b670