Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Clap grep: can't preview file content #321

Closed
apgrc opened this issue Feb 12, 2020 · 0 comments
Closed

Clap grep: can't preview file content #321

apgrc opened this issue Feb 12, 2020 · 0 comments

Comments

@apgrc
Copy link

apgrc commented Feb 12, 2020

Environment:

  • OS: Windows and WSL
  • Vim 8.2 / NeoVim 0.4.3
  • vim-clap version: v0.7

On the result window of Clap grep, if there is a match with a space in the path there is an error saying "%file% is unreadable".

Clap debug

has cargo: 0
has maple: v:null
has +python3: 0
has py dynamic module: v:false
Current FileType: startify
Third Party Providers: []
Global Options:
let g:clap#autoload_dir = 'C:\Users\{user}\.cache\vimfiles\repos\github.com\liuchengxu\vim-clap\autoload'
let g:clap#popup#display = {'shrink': function('332'), 'open': function('<SNR>284_create_display'), 'width': 140, 'shrink_if_undersize': function('331')}
let g:clap#popup#input = {'winid': 1006}
let g:clap#popup#preview = {'line_count': function('<SNR>283__line_count'), 'show': function('333'), 'hide': function('334'), 'bufnr': 5, 'add_highlight': function('335'), 'get_lines': function('<SNR>283__get_lines'), 'getbufvar': function('<SNR>283__getbufvar'), 'setbufvar_batch': function('<SNR>283__setbufvar_batch'), 'setbufvar': function('<SNR>283__setbufvar'), 'winid': 1004, 'goto_win': function('<SNR>283__goto_win'), 'set_syntax': function('336')}
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_indicator_winid = 1005
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 = 'nil'
let g:clap_search_box_border_symbols = {'nil': ['', ''], 'curve': ['', ''], 'arrow': ['', '']}
let g:clap_spinner_winid = 1007
Provider Variables: []

To Reproduce
Steps to reproduce the behavior:

  1. Create the minimal vimrc min.vim:
set nocompatible
set runtimepath^=/path/to/vim-clap
syntax on
filetype plugin indent on
  1. Execute: mkdir 'New Directory' && echo Clap test >> 'New Directory/Clap test'

  2. Start (neo)vim with command: vim -u min.vim

  3. Type ':Clap grep'

  4. Type 'clap test'

  5. Press

5 See error test in unreadable

Expected behavior
A preview of the file and being capable of opening it.

@liuchengxu liuchengxu changed the title Clap grep: can't open file if there is a space on the path Clap grep: can't preview file content Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant