From 239eeaf94ff016fc2c2510be3eb37bcc572992d5 Mon Sep 17 00:00:00 2001 From: Vladimir Bauer Date: Fri, 15 Feb 2019 20:11:45 +0300 Subject: [PATCH] default find is compatible on both gnu and bsd --- rc/fzf-modules/fzf-cd.kak | 4 ++-- rc/fzf-modules/fzf-file.kak | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/fzf-modules/fzf-cd.kak b/rc/fzf-modules/fzf-cd.kak index af6d038..58b7620 100644 --- a/rc/fzf-modules/fzf-cd.kak +++ b/rc/fzf-modules/fzf-cd.kak @@ -10,7 +10,7 @@ declare-option -docstring "command to provide list of directories to fzf. 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" @@ -37,7 +37,7 @@ define-command -hidden fzf-cd %{ evaluate-commands %sh{ case $kak_opt_fzf_cd_command in 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 ;; esac diff --git a/rc/fzf-modules/fzf-file.kak b/rc/fzf-modules/fzf-file.kak index 812cbac..4206eca 100644 --- a/rc/fzf-modules/fzf-file.kak +++ b/rc/fzf-modules/fzf-file.kak @@ -17,7 +17,7 @@ Supported tools: fd: ""fd"" Default arguments: - find: ""find -type f -follow"" + find: ""find -L . -type f"" ag: ""ag -l -f --hidden --one-device ."" rg: ""rg -L --hidden --files"" fd: ""fd --type f --follow"" @@ -33,7 +33,7 @@ define-command -hidden fzf-file %{ evaluate-commands %sh{ fi case $kak_opt_fzf_file_command in find) - cmd="find -type f -follow" ;; + cmd="find -L . -type f" ;; ag) cmd="ag -l -f --hidden --one-device . " ;; rg)