hawkeye
is a cli tool to list file paths from the current directory with considering .gitignore file if exists.
hawkeye
depends on libgit2/git2go library to recognize gitignore file.
So you should install libgit2
before install hawkeye
.
NOTE: Now, I use hawkeye
with libgit2
v0.26.3 on MacOS. 😄
Just call hawkeye
command like this.
$ hawkeye
I want to use this command in vim, like this.
function! PecoOpen()
for filename in split(system("hawkeye | peco"), "\n")
execute "e" filename
endfor
endfunction
nnoremap <Leader>op :call PecoOpen()<CR>
WARN: This config does not works on neovim.
See Issues.
MIT