High-match items are no longer prioritized
octaltree opened this issue · comments
Problems summary
c7cc15d 以降file/recでマッチ度が高いものが優先されなくなった。
ファイル"abc", "acb"があるディレクトリでfile/recを使い"ac"でフィルタしたときに"abc"が上にくるようになった。
Expected
マッチ度が高い"acb", "abc"の順で表示されてほしい。
Environment Information (Required!)
-
denite version (SHA1): 7cce9b9
-
OS: Linux version 5.10.23-1-MANJARO (builduser@LEGION) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1)
-
Vim/neovim version: NVIM v0.5.0-dev+1176-g9481310c2
-
:checkhealth
or:CheckHealth
result(neovim only):
health#nvim#check
========================================================================
## Configuration
- OK: no issues found
## Performance
- OK: Build type: RelWithDebInfo
## Remote Plugins
- OK: Up to date
## terminal
- INFO: key_backspace (kbs) terminfo entry: key_backspace=^H
- INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
- INFO: $COLORTERM='truecolor'
## tmux
- OK: escape-time: 1
- INFO: Checking stuff
- OK: focus-events: on
- INFO: $TERM: tmux-256color
health#provider#check
========================================================================
## Clipboard (optional)
- OK: Clipboard tool found: xclip
## Python 2 provider (optional)
- WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
- ERROR: Python provider error:
- ADVICE:
- provider/pythonx: Could not load Python 2:
python2 not found in search path or not executable.
python2.7 not found in search path or not executable.
python2.6 not found in search path or not executable.
/usr/bin/python is Python 3.9 and cannot provide Python 2.
- INFO: Executable: Not found
## Python 3 provider (optional)
- INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment.
- INFO: Multiple python3 executables found. Set `g:python3_host_prog` to avoid surprises.
- INFO: Executable: /usr/bin/python3
- INFO: Other python executable: /bin/python3
- INFO: Python version: 3.9.2
- INFO: pynvim version: 0.4.3
- OK: Latest pynvim is installed.
## Python virtualenv
- OK: no $VIRTUAL_ENV
## Ruby provider (optional)
- INFO: Ruby: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
- INFO: Host: /usr/bin/neovim-ruby-host
- OK: Latest "neovim" gem is installed: 0.8.1
## Node.js provider (optional)
- INFO: Node.js: v15.11.0
- INFO: Nvim node.js host: /usr/lib/node_modules/neovim/bin/cli.js
- OK: Latest "neovim" npm/yarn package is installed: 4.9.0
## Perl provider (optional)
- ERROR: perl provider error:
- ADVICE:
- "Neovim::Ext" cpan module is not installed
health#denite#check
========================================================================
## denite.nvim
- OK: has("python3") was successful
- OK: Python 3.6.1+ was successful
- OK: Require msgpack 1.0.0+ was successful
Provide a minimal init.vim with less than 50 lines (Required!)
set runtimepath+=~/.config/nvim/dein/repos/github.com/Shougo/denite.nvim
autocmd FileType denite call s:denite_my_settings()
function! s:denite_my_settings() abort
nnoremap <silent><buffer><expr> i denite#do_map('open_filter_buffer')
endfunction
nnoremap <space>f :<c-u>Denite file/rec<CR>
nnoremap ; :
How to reproduce problems from neovim startup (Required!)
$ mkdir /tmp/hoge
$ cd /tmp/hoge
$ touch abc acb
$ nvim -u min.vim
file/recを"ac"でフィルタ
ミニマルは以上。
call denite#custom#var('file/rec', 'command', ['ag', '--hidden', '--follow', '--nocolor', '--nogroup', '-g', ''])
で大きいディレクトリで動かした感じマッチ度でソートされずそのままでてる気がする。
denite.nvim/rplugin/python3/denite/child.py
Line 384 in 7cce9b9
ここでソート結果捨ててそう
Fixed.
Please use the latest version.