aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/autoload/gxfind.vim
blob: 90923a88668701558fae2cadc557e71b507e60d0 (plain)
1
2
3
4
5
6
7
8
9
function! gxfind#find(args)
    let findcmd = 'find . -type f ' . a:args
    if executable('fd')
        let findcmd = 'fd --hidden --type f ' . a:args . ' . '
    endif

    :cexpr system(findcmd)
endfunction