On Mi, 14 Okt 2020, Maxim Kim wrote:
> Hi, I wonder why "better" candidate has lower score than the others:
>
> https://i.imgur.com/NPhKNsZ.png
>
> tried to search `vimrc` and `.vim/vimrc` has lower score than
> `.vim/vimrc_colors`.
The neighbor '_' adds an additional bonus for scoring. Ther
Maxim Kim wrote:
> Minimal repro:
>
> let g:testfuzzy = ['vimrc', 'vimrc_colors']
> echom g:testfuzzy->matchfuzzy('vimrc')
>
> result:
> ['vimrc_colors', 'vimrc']
I don't really know how it's scored, but here I would
have thought that the first entry "vimrc" should have
a better score than "vimrc
Minimal repro:
let g:testfuzzy = ['vimrc', 'vimrc_colors']
echom g:testfuzzy->matchfuzzy('vimrc')
result:
['vimrc_colors', 'vimrc']
четверг, 15 октября 2020 г. в 09:21:32 UTC+3, Maxim Kim:
> Hi, I wonder why "better" candidate has lower score than the others:
>
> https://i.imgur.com/NPhKNsZ.p
I had the same issue with YCM which uses python too:
https://github.com/ycm-core/YouCompleteMe/issues/3772
Tried with 8.2.1840 -- no issues so far.
четверг, 15 октября 2020 г. в 02:30:19 UTC+3, IanSmith21:
> Yes. Sorry. 184->1840
>
> I have been using *8.2.1840* for a few days and I have not
Hi, I wonder why "better" candidate has lower score than the others:
https://i.imgur.com/NPhKNsZ.png
tried to search `vimrc` and `.vim/vimrc` has lower score than
`.vim/vimrc_colors`.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text
Yegappan Lakshmanan wrote:
> The matchfuzzy() function uses the standard C library qsort() function to
> sort the
> matches by score. The qsort() function is not guaranteed to be stable as
> explained
> in the following page;
>
> https://nullprogram.com/blog/2014/08/29/#:~:text=Since%20quicksort
Hi,
On Wed, Oct 14, 2020 at 1:28 PM Maxim Kim wrote:
> The plugin I do https://github.com/habamax/vim-select uses ripgrep to
> feed files into fuzzymatchpos function. It looks good for me with one minor
> issue with sorting, have a look into the video I have recorded:
>
> https://youtu.be/RPM3Gc
Note that for the same set of files and input on wsl vim I get "stable"
sorted output.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You receiv
The plugin I do https://github.com/habamax/vim-select uses ripgrep to feed
files into fuzzymatchpos function. It looks good for me with one minor
issue with sorting, have a look into the video I have recorded:
https://youtu.be/RPM3GccvDGA
What is happening there:
1. I ran `rg --files --no-ign
Patch 8.2.1845
Problem:Vim9: function defined in a block can't use variables defined in
that block.
Solution: First step: Make a second hashtab that holds all script variables,
also block-local ones, with more information.
Files: src/structs.h, src/evalvars.c, s
10 matches
Mail list logo