mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-03-01 21:07:01 +08:00
[Helptags] Fix perl script for Windows (#1036)
Temporary perl script that parses output of help grep doesn't take into account backward slash as windows path separator. Fixes #987
This commit is contained in:
@@ -1021,7 +1021,7 @@ function! fzf#vim#helptags(...)
|
|||||||
silent! call delete(s:helptags_script)
|
silent! call delete(s:helptags_script)
|
||||||
endif
|
endif
|
||||||
let s:helptags_script = tempname()
|
let s:helptags_script = tempname()
|
||||||
call writefile(['/('.(s:is_win ? '^[A-Z]:\/.*?[^:]' : '.*?').'):(.*?)\t(.*?)\t/; printf(qq('.s:green('%-40s', 'Label').'\t%s\t%s\n), $2, $3, $1)'], s:helptags_script)
|
call writefile(['/('.(s:is_win ? '^[A-Z]:[\/\\].*?[^:]' : '.*?').'):(.*?)\t(.*?)\t/; printf(qq('.s:green('%-40s', 'Label').'\t%s\t%s\n), $2, $3, $1)'], s:helptags_script)
|
||||||
return s:fzf('helptags', {
|
return s:fzf('helptags', {
|
||||||
\ 'source': 'grep -H ".*" '.join(map(tags, 'fzf#shellescape(v:val)')).
|
\ 'source': 'grep -H ".*" '.join(map(tags, 'fzf#shellescape(v:val)')).
|
||||||
\ ' | perl -n '.fzf#shellescape(s:helptags_script).' | sort',
|
\ ' | perl -n '.fzf#shellescape(s:helptags_script).' | sort',
|
||||||
|
|||||||
Reference in New Issue
Block a user