Open mjknght opened 2 weeks ago
Could you run which -a rg
in the terminal and share the output?
The other searches work?
Just in case, I added some logging and a potential fix for an edge case I found, so you might try version 1.0.3 and run the command again:
Hi Chris! Thanks for a quick response. I've updated to 1.0.3, and find I still have the same problem. When I run which -a rg
I get:
mark@Marks-Laptop ~ % which -a rg
/opt/homebrew/bin/rg
I added some logging to 1.0.3, so please run the command again and copy the debugging log again, which should now include some more information
Hi! Afraid the debugger appears to output the same way with 1.0.3 (checked plist to confirm I was on this version):
[17:04:47.132] Quick File Access[Script Filter] Queuing argument '(null)'
Do the other searches work?
Front Finder window, download folder and trash work. Recent files and also tag don’t work – but then again, I haven’t set up a tag. Thanks again.
tbh, I do not have any idea why this does not work for you then. Queuing argument '(null)'
as output should not be possible, it should either throw an error or a log message.
Hmm, OK, thanks for looking into it! I’m no developer, but will let you know what the issue is if do happen to figure out what’s up on my side…
Hi Chris,
I feel a little silly – I happened to notice that it is working after all; it's just very slow. Perhaps the number of recently modified files?
[12:03:08.699] Quick File Access[Script Filter] Queuing argument '(null)'
[12:03:33.868] Quick File Access[Script Filter] Script with argv '(null)' finished
[12:03:33.873] STDERR: Quick File Access[Script Filter] KEYWORD: rec
SHELL COMMAND
export PATH=/usr/local/lib:/usr/local/bin:/opt/homebrew/bin/:$PATH ; cd "/Users/mark" && rg --no-config --files --binary --sortr=modified --ignore-file="/Users/mark/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6B8455D0-F4C7-426C-95D0-FCC9942990B3/scripts/home-icloud-ignore-file"
Aha!
Yes, the number of files could be an issue. You could try to lower the value in the settings, but if you have a large home directory, it might be slow regardless.
How large of a home directory do you have?
Checklist
Alfred version
5.5.1 (2273)
macOS version
Sonoma 14.6.1
Bug Description
Results never appear when using the
rec
command.Relevant Screenshot
No response
To Reproduce
When I run the
rec
command, the debugger shows the below and no results appear. (I have installed ripgrep using the specified command.) Thanks in advance for any help you can offer – it's a great idea for a workflow! 🙂Debugging Log
Workflow Configuration