Closed petobens closed 10 years ago
I fixed it.
Ps: One doubt: Is it correct to use sorter_reverse to have the best match at the top when the prompt is at the bottom?
Yes. Candidates are reversed automatically.
The resize issue doesn't seem to be fixed:
And when I use
call unite#filters#sorter_default#use(['sorter_rank','sorter_reverse'])
candidates i) are still missing (compare the first and second images) and ii) I want the best candidates to be at the top with cursor highlight also at the top, this doesn't happen
candidates i) are still missing (compare the first and second images) and ii) I want the best candidates to be at the top with cursor highlight also at the top, this doesn't happen
nnoremap <silent> ,fs :Unite -silent -auto-resize -prompt-direction=top file_rec/async<CR>
It is feature. If prompt is below, candidates top is aloways below. See ctrlp plugin behavior.
The resize issue doesn't seem to be fixed:
I cannot reproduce problem...
It is feature. If prompt is below, candidates top is aloways below. See ctrlp plugin behavior.
Okay I get it.
I cannot reproduce problem...
I'll write a minimal vimrc
WIth the following minimal vimrc
set nocompatible
let $ONEDRIVE_HOME = expand('C:/OD/Users/Pedro/')
let $DOTVIM = expand('$ONEDRIVE_HOME/vimfiles')
set runtimepath+=$DOTVIM/bundle/unite
let g:unite_split_rule = 'botright'
nnoremap <silent> ,bm :Unite -silent -auto-resize -default-action=rec bookmark<CR>
open gVim and create two bookmark directores: :UniteBookmarkAdd C:\Users\Pedro\Desktop\foo\
and :UniteBookmarkAdd C:\Users\Pedro\Desktop\bar\
. Now call the ,bm
mapping and type f
. You get the result seen in the next image (note that the automatic resizing does not work)
OK. I will test later.
Okay, no hurry at all. Thanks
Fixed it.
Thank you!
I noticed a few issues with new below prompt feature. Consider the following minimal vimrc
When I call the mapping in my
vimfiles
directory and inputfooba
as candidate I get the result seen in the first image. If I now replace the following lines in my minimal vimrc:with
and repeat the procedure of calling the mapping in my
vimfiles
directory and typingfooba
I get the result seen in the second image. Comparing the two images you can see that when the prompt is below there is no cursor highlight, wrong autoresize and not all candidates are shown.Ps: One doubt: Is it correct to use
sorter_reverse
to have the best match at the top when the prompt is at the bottom?