Jump to content

When called from an Alfred script, ripgrep (rg) requires "." at the end. Why?


Recommended Posts

Thanks, I should have specified.

 

It can be just a scrip object like this (see screenshot) or an external script where `rg` is a subprocess -- in both cases it won't work w/o the path param (the ".")

 

> What do you mean when you say it doesn’t work? What’s your code and what’s the result you get? Have you looked in the debugger?

 

Good question. It returns an empty set of results, "0" matches -- so it does manage to call `rg` because the output `rg` output, but for some reason, it doesn't find results.

 

1635479859_CleanShot2023-01-24at10_31.02@2x.png.a51d63812907ea363efa5c3d175e6c48.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...