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

Adding new grep tools #18

Closed
tylerw opened this issue Dec 10, 2015 · 2 comments
Closed

Adding new grep tools #18

tylerw opened this issue Dec 10, 2015 · 2 comments

Comments

@tylerw
Copy link

tylerw commented Dec 10, 2015

What is the proper way to add custom greppers? Prior to e1a48d0 I was using this configuration:

let g:grepper = {
    \ 'tools': ['git', 'sift', 'ag', 'pt', 'ack', 'grep'],
    \ 'sift': {
    \   'grepprg': 'sift -i -n --no-color --no-group $* .',
    \   'grepformat': '%f:%l:%m',
    \   'escape':     '\+*^$()[].',
    \ }}

...and it worked as expected. After that commit (and b1c1904), I see the following when invoking Grepper:

grepper: Ignoring unknown key "sift".
Don't understand: sift

...and the following error when hitting <Tab> at the Grepper prompt:

##Error detected while processing function grepper#parse_command..<SNR>213_start..<SNR>213_prompt..<SNR>213_tool_escape..<SNR
>213_option:
line    5:
E716: Key not present in Dictionary: sift
E15: Invalid expression: s:options[s:options.tools[0]]
Error detected while processing function grepper#parse_command..<SNR>213_start..<SNR>213_prompt..<SNR>213_tool_escape:
line    4:
E715: Dictionary required
Error detected while processing function grepper#parse_command..<SNR>213_start..<SNR>213_prompt..<SNR>213_prompt..<SNR>213_option:
line    5:
E716: Key not present in Dictionary: sift
E15: Invalid expression: s:options[s:options.tools[0]]
Error detected while processing function grepper#parse_command..<SNR>213_start..<SNR>213_prompt:
line   20:
E171: Missing :endif
Error detected while processing function grepper#parse_command..<SNR>213_start:
line   14:
E171: Missing :endif
mhinz added a commit that referenced this issue Dec 10, 2015
@mhinz
Copy link
Owner

mhinz commented Dec 11, 2015

Argh, silly mistake. Please pull again, it should work now.

@tylerw
Copy link
Author

tylerw commented Dec 11, 2015

Yes, that did it, thanks!

@tylerw tylerw closed this as completed Dec 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants