Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Filer selects first match always #348

Closed
anihm136 opened this issue Mar 13, 2020 · 1 comment
Closed

Filer selects first match always #348

anihm136 opened this issue Mar 13, 2020 · 1 comment

Comments

@anihm136
Copy link

Environment :

  • OS: Ubuntu 19.10
  • (Neo)Vim version: 0.5.0
  • vim-clap version: current master
  • Have you reproduced with a minimal vimrc: no
  • Have you updated to the latest plugin version: yes
  • Have you upgraded to/compiled the latest Rust binary: yes

Describe the bug
Using :Clap filer, if you type in a few characters to narrow the results and select any entry, the first match is opened always instead of the selected entry.

Clap debug

has cargo: 1
            has maple: /home/anirudh/.config/nvim/plugged/vim-clap/target/release/maple
           maple info: version 0.1.9, built for x86_64-unknown-linux-gnu by rustc 1.39.0 (4560ea788 2019-11-04).
         has +python3: 0
has py dynamic module: 0
     Current FileType: javascriptreact
Third Party Providers: []
       Global Options:
    let g:clap#autoload_dir = '/home/anirudh/.config/nvim/plugged/vim-clap/autoload'
    let g:clap#provider_alias = {'gfiles': 'git_files', 'hist:': 'command_history', 'hist/': 'search_history'}
    let g:clap_disable_bottom_top = 0
    let g:clap_enable_icon = 1
    let g:clap_forerunner_status_sign = {'done': '•', 'running': '!'}
    let g:clap_insert_mode_only = v:false
    let g:clap_no_matches_msg = 'NO MATCHES FOUND'
    let g:clap_open_action = {'ctrl-v': 'vsplit', 'ctrl-x': 'split', 'ctrl-t': 'tab split'}
    let g:clap_search_box_border_style = 'curve'
    let g:clap_search_box_border_symbols = {'nil': ['', ''], 'curve': ['', ''], 'arrow': ['', '']}
  Provider Variables:
    let g:clap_provider_dotfiles = {'source': ['~/.dotfiles/vim/.vim/.vimrc', '~/.dotfiles/vim/.vim/plugged/plug_vim.vim', '~/.dotfile
s/nvim/.config/nvim/plugged/plugins.vim', '~/.dotfiles/nvim/.config/nvim/init.vim', '~/.dotfiles/vifm/.config/vifm/vifmrc', '~/.zshrc'
, '~/.profile', '~/.sh_funcs'], 'sink': 'e'}
    let g:clap_provider_grep_opts = '-H --no-heading --vimgrep --smart-case --hidden -g "!.git/"'
    let g:clap_providers_relaunch_code = '@@'

To Reproduce
Steps to reproduce the behavior:

  1. Open NeoVim in any directory with more than one file
  2. Open :Clap filer and enter few characters to narrow the results
  3. Select any file except the first and press Enter
  4. The first matched file is opened in a new buffer

Expected behavior
The selected file is opened in new buffer

@anihm136
Copy link
Author

It works as expected now. Thanks for the quick response!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant