The file finder is not used in some conditions, as in wilder#cmdline#should_use_file_finder including:
contains * character
arg starts with %, #, or <
file path starts with ~, /, \, or ..
etc.
" cmdline
" : check getcmdtype()?
" |--> return v:false
" : parse_cmdline
" : prepare user completion to update res.expand
" : if handled
" |--> return v:false
" : check is file or dir
" |--> return v:false
" : prepare_file_completion
" | reset parsed.pos to original
+ " : should use file finder?
+ " |--> return v:false
" : debounce if needed
" : _wilder_python_file_finder
" : add pos, replace and data
" └--> result
but I would still like to use the file finder even when file path starts with some absolute path. I know this is added to prevent scanning of large filesystem accidentally, but I feel it's too limiting. Due to the should_use_file_finder checker returning false, the file_command handler is never called. Would it be possible to add some opts to bypass this (at users' own risk)?
The file finder is not used in some conditions, as in
wilder#cmdline#should_use_file_finder
including:*
character%
,#
, or<
~
,/
,\
, or..
but I would still like to use the file finder even when file path starts with some absolute path. I know this is added to prevent scanning of large filesystem accidentally, but I feel it's too limiting. Due to the
should_use_file_finder
checker returning false, thefile_command
handler is never called. Would it be possible to add some opts to bypass this (at users' own risk)?My current config:
where
_wilder_fuzzy_fd_pipeline_command
is my custom fd command generator.