gkosgrep

Crates.iogkosgrep
lib.rsgkosgrep
version0.1.10
sourcesrc
created_at2020-02-10 03:09:59.988985
updated_at2020-06-06 02:06:55.201984
descriptionA simple grep clone for developers
homepagehttps://github.com/dhilst/gkosgrep
repositoryhttps://github.com/dhilst/gkosgrep
max_upload_size
id206904
size169,979
Daniel Hilst (dhilst)

documentation

README

Crates.io

Overview

Small tool for greping supporting .gitignore and custom .ignore file. This make easy to ignore files that reside in git like rspec support files.

Installation

cargo install gkosgrep

Usage

I did this to use inside vim as a replacement for the silver searcher that would be easier to customize what is ignored. The usage is damn simple

gkosgrep <path> [pattern]

If ignored file is missing it is just ignored. To use this with fzf inside vim, do:

command! -bang -nargs=* Gkosgrep
      \ call fzf#vim#grep(
      \   $HOME.'/.cargo/bin/gkosgrep . '.shellescape(<q-args>), 0,
      \   {}, <bang>0)

Then use Gkosgrep command to filter files

Commit count: 61

cargo fmt