ddrscott / vim-side-search

Search context in Vim in a sidebar using `rg` output
http://ddrscott.github.io/blog/2016/side-search/
MIT License
79 stars 6 forks source link

[Feature Request] Add the possibility to add your custom paths for search #8

Open jezus-nunez opened 4 years ago

jezus-nunez commented 4 years ago

In the command building the plugin allows for the current guess for project root. Could we also add the possibility of adding your own custom paths.

https://github.com/ddrscott/vim-side-search/blob/be409b2a7800298aebf5876161684c64e607435f/plugin/side-search.vim#L197

in my case $(find . -name "Gemfile" -type f -exec sh -c 'cd $(dirname $1) && bundle _1.17_ >/dev/null 2>&1 && bundle _1.17_ show --paths' -- {} \;) would also add to the search the location of my gems in ruby.

A new argument like g:custom_paths would do. Can we have this implemented, or otherwise should I create a PR for that?

ddrscott commented 4 years ago

I wonder if other search plugins have a convention for their g: variable name. If they do, let's use their name, too. Otherwise, I think g:project_path would be more descriptive.

I'm open to all PRs :)