Shougo / ddu-ui-ff

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

preview window's width is not arranged correctly when setting border #99

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

preview window's width and main window's width should be same. Or user can setting preview window's width when setting when setting previewSplit is horizontal.

Environment Information

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

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
set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu-source-file_rec
set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu-kind-file

nnoremap [ddu] <Nop>
nmap <Space>u [ddu]
nmap <silent> [ddu]f <Cmd>call ddu#start({
            \ 'ui': 'ff',
            \ 'uiParams': {
            \   'ff': {
            \       'startFilter': v:true,
            \       'autoAction': {
            \           'name': 'preview',
            \       },
            \       'split': 'floating',
            \       'filterFloatingPosition': 'bottom',
            \       'previewFloating': v:true,
            \       'floatingBorder': 'rounded',
            \       'previewFloatingBorder': 'rounded',
            \   }
            \ },
            \ 'sources': [{'name': 'file_rec', 'params': {}}],
            \ })<CR>

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

  1. type <Space> u f for start ddu

Screenshot (if possible)

image

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

kamecha commented 1 year ago

This may not be related to this issue, but when setting filterFloatingPosition is top and other setting is same above, the preview window is not arrange correctly I think.

nmap <silent> [ddu]f <Cmd>call ddu#start({
            \ 'ui': 'ff',
            \ 'uiParams': {
            \   'ff': {
            \       'startFilter': v:true,
            \       'autoAction': {
            \           'name': 'preview',
            \       },
            \       'split': 'floating',
            \       'previewFloating': v:true,
            \       'floatingBorder': 'rounded',
            \       'previewFloatingBorder': 'rounded',
            \   }
            \ },
            \ 'sources': [{'name': 'file_rec', 'params': {}}],
            \ })<CR>

screen shot... image

Shougo commented 1 year ago

Fixed.