mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 12:44:24 +08:00
* Remove dependency of fzf#vim#helptags on grep. The grep command was used here only to dump file contents prefixed with the filename and a colon. Since the function generates a temporary Perl script anyway, it is simpler to do this directly in the Perl script. This removes the dependency on grep and makes it easier to get :Helptags to work on Windows. A subsequent commit will also move the sorting of the helptags into the Perl script. I did not do it in this commit, since the OS's "sort" command can give a different sort order than Perl's sort function, so I'm not sure what is preferred here. Note: 'use autodie' is recommended over 'use Fatal' but the autodie module has only been in Perl core since v5.10.1 (2009-08-22) while Fatal is in core since 1996. The three-argument open requires v5.6 (2000). * Remove dependency of fzf#vim#helptags on external sort command. This moves the sorting of helptags into the generated Perl script and thereby removes the dependency on an external "sort" command. Note that Perl's sort function used here may give a different sort order than the OS's sort command. (It does so for me on Windows but I actually like Perl's ASCII sort order better, anyway.) --------- Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>