Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jezus-nunez opened this issue Oct 2, 2019 · 1 comment

Comments

@jezus-nunez
Copy link

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.

let b:cmd = g:side_search_prg . ' ' . a:args . ' ' . l:cwd

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?

@jezus-nunez jezus-nunez changed the title Add the possibility to add your custom paths for search [Feature request] Add the possibility to add your custom paths for search Oct 2, 2019
@jezus-nunez jezus-nunez changed the title [Feature request] Add the possibility to add your custom paths for search [Feature Request] Add the possibility to add your custom paths for search Oct 2, 2019
@ddrscott
Copy link
Owner

ddrscott commented Oct 2, 2019

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants