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

Cannot open files with pipe in file path #643

Closed
Jayphen opened this issue Feb 24, 2021 · 0 comments
Closed

Cannot open files with pipe in file path #643

Jayphen opened this issue Feb 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Jayphen
Copy link

Jayphen commented Feb 24, 2021

Environment (please complete the following information):

  • OS: macOS
  • (Neo)Vim version: NVIM v0.5.0-dev+595f6e4d6
  • vim-clap version: 0.23
  • Have you reproduced with a minimal vimrc: yes
  • Have you updated to the latest plugin version: yes
  • Have you upgraded to/compiled the latest Rust binary: yes

Describe the bug

When using files/git_files to fzf a file that has brackets/a pipe in it, the file does not open. Instead the following is output:

vim-clap: target_dir:/Users/jayphen/dev/--removed--, Run:function('85', {'source_type': 3, 'is_sync': function('104'), 'get_source': function('103'), 'init_default_impl': function('107'), 'can_async': function('106'), 'init_display_win': function('108'), 'support_multi_select': function('95'), '_apply_sink': fun
ction('85'), 'id': 'files', 'filter': function('94'), 'sink_star': function('88'), 'sink': function('87'), 'support_open_action': function('96'), '_': function('83'), 'is_pure_async': function('105'), 'try_set_syntax': function('98'), 'on_typed': function('90'), 'source_async_or_default': function('100'), 'on_exit': 
function('92'), 'has_enable_rooter': function('86'), 'source_async': function('101'), 'jobstop': function('93'), 'abort': function('84'), 'is_rpc_type': function('97'), 'apply_query': function('99'), 'on_enter': function('89'), '_apply_source': function('102'), 'on_move': function('91')}), run_args:['src/routes/[lang
(en|de)]/product-list.svelte'], exception:Vim(delete):E488: Trailing characters: de)]/product-list.svelte   

Example file path 'src/routes/[lang(en|de)]/product-list.svelte'

Clap debug

            has cargo: 1                                                                                                                                                                                                                                                                                                      
            has maple: /Users/jayphen/.config/nvim/plugged/vim-clap/target/release/maple                                                                                                                                                                                                                                      
           maple info: version 0.1.23, built for x86_64-apple-darwin by rustc 1.49.0.                                                                                                                                                                                                                                         
         has +python3: 1                                                                                                                                                                                                                                                                                                      
has py dynamic module: 1                                                                                                                                                                                                                                                                                                      
            has ctags:                                                                                                                                                                                                                                                                                                        
vim-clap: Ensure ctags executable is in your PATH and has the JSON output featurectags without JSON output support                                                                                                                                                                                                            
    Current sync impl: Lua                                                                                                                                                                                                                                                                                                    
     Current FileType:                                                                                                                                                                                                                                                                                                        
Third Party Providers: []                                                                                                                                                                                                                                                                                                     
       Global Options:                                                                                                                                                                                                                                                                                                        
    let g:clap#autoload_dir = '/Users/jayphen/.config/nvim/plugged/vim-clap/autoload'                                                                                                                                                                                                                                         
    let g:clap#provider_alias = {'gfiles': 'git_files', 'hist:': 'command_history', 'hist/': 'search_history'}                                                                                                                                                                                                                
    let g:clap_background_shadow_blend = 50                                                                                                                                                                                                                                                                                   
    let g:clap_disable_bottom_top = 0                                                                                                                                                                                                                                                                                         
    let g:clap_disable_matches_indicator = v:false                                                                                                                                                                                                                                                                            
    let g:clap_disable_optional_async = v:false                                                                                                                                                                                                                                                                               
    let g:clap_disable_run_rooter = v:false                                                                                                                                                                                                                                                                                   
    let g:clap_enable_background_shadow = v:true                                                                                                                                                                                                                                                                              
    let g:clap_enable_debug = v:false                                                                                                                                                                                                                                                                                         
    let g:clap_enable_icon = 0                                                                                                                                                                                                                                                                                                
    let g:clap_forerunner_status_sign = {'done': '•', 'running': '!', 'using_cache': '*'}                                                                                                                                                                                                                                     
    let g:clap_insert_mode_only = v:false                                                                                                                                                                                                                                                                                     
    let g:clap_layout = {'relative': 'editor'}                                                                                                                                                                                                                                                                                
    let g:clap_multi_selection_warning_silent = 0                                                                                                                                                                                                                                                                             
    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_open_preview = 'always'                                                                                                                                                                                                                                                                                        
    let g:clap_popup_border = 'rounded'                                                                                                                                                                                                                                                                                       
    let g:clap_preview_direction = 'LR'                                                                                                                                                                                                                                                                                       
    let g:clap_preview_size = 5                                                                                                                                                                                                                                                                                               
    let g:clap_providers_relaunch_code = '@@'                                                                                                                                                                                                                                                                                 
    let g:clap_search_box_border_style = 'nil'                                                                                                                                                                                                                                                                                
    let g:clap_search_box_border_symbols = {'nil': ['', ''], 'curve': ['', ''], 'arrow': ['', '']}                                                                                                                                                                                                                        
    let g:clap_theme = 'material_design_dark'  
@Jayphen Jayphen added the bug Something isn't working label Feb 24, 2021
@Jayphen Jayphen changed the title Cannot open files with pipe in file name Cannot open files with pipe in file path Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant