1
0
Fork 0

default find is compatible on both gnu and bsd

This commit is contained in:
Vladimir Bauer 2019-02-15 20:11:45 +03:00
parent 1ac6fdf524
commit 239eeaf94f
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@
declare-option -docstring "command to provide list of directories to fzf. declare-option -docstring "command to provide list of directories to fzf.
Default value: Default value:
find: (echo .. && find \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print) find: (echo .. && find . \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print)
" \ " \
str fzf_cd_command "find" str fzf_cd_command "find"
@ -37,7 +37,7 @@ define-command -hidden fzf-cd %{ evaluate-commands %sh{
case $kak_opt_fzf_cd_command in case $kak_opt_fzf_cd_command in
find) find)
items_command="(echo .. && find \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print)" ;; items_command="(echo .. && find . \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print)" ;;
*) *)
items_command=$kak_opt_fzf_cd_command ;; items_command=$kak_opt_fzf_cd_command ;;
esac esac

View file

@ -17,7 +17,7 @@ Supported tools:
fd: ""fd"" fd: ""fd""
Default arguments: Default arguments:
find: ""find -type f -follow"" find: ""find -L . -type f""
ag: ""ag -l -f --hidden --one-device ."" ag: ""ag -l -f --hidden --one-device .""
rg: ""rg -L --hidden --files"" rg: ""rg -L --hidden --files""
fd: ""fd --type f --follow"" fd: ""fd --type f --follow""
@ -33,7 +33,7 @@ define-command -hidden fzf-file %{ evaluate-commands %sh{
fi fi
case $kak_opt_fzf_file_command in case $kak_opt_fzf_file_command in
find) find)
cmd="find -type f -follow" ;; cmd="find -L . -type f" ;;
ag) ag)
cmd="ag -l -f --hidden --one-device . " ;; cmd="ag -l -f --hidden --one-device . " ;;
rg) rg)