chrisgrieser / alfred-quick-file-access

Quickly access recent files, files with a specific tag, files in the current window, files in the downloads folder, or trashed files.
MIT License
4 stars 0 forks source link

[Bug]: Recent Finder Files not working #1

Open mjknght opened 2 weeks ago

mjknght commented 2 weeks ago

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

[16:36:57.370] Quick File Access[Script Filter] Queuing argument '(null)'

Workflow Configuration

Screenshot 2024-10-04 at 4 38 18 PM
chrisgrieser commented 2 weeks ago

Could you run which -a rg in the terminal and share the output?

The other searches work?

chrisgrieser commented 2 weeks ago

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:

https://github.com/chrisgrieser/alfred-quick-file-access/releases/download/1.0.3/alfred-quick-file-access.alfredworkflow

mjknght commented 2 weeks ago

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
chrisgrieser commented 2 weeks ago

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

mjknght commented 2 weeks ago

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

chrisgrieser commented 2 weeks ago

Do the other searches work?

mjknght commented 2 weeks ago

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.

chrisgrieser commented 2 weeks ago

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.

mjknght commented 2 weeks ago

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…

mjknght commented 1 week ago

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"
chrisgrieser commented 1 week ago

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?