This is a great workflow 🙏.
I use it all the time, but it fails sometimes, I think, because Alfred has been updated, which makes macOS want to de-authorise the workflow.
The solution is given here [https://github.com/drgrib/alfred-bear#authorize-all-executables]. You use CLI to go to the workflow and run "xattr -rd com.apple.quarantine cmd" to authorise it again. Then searching works. ✅
It's a few steps so I thought that it would be worth streamlining. So far, I've just been selecting one of the shell lines, below, from a Bear note and using PopClip to run it in iTerm. It would probably be more convenient to run in Alfred (Shortcuts, Keyboard Maestro, etc)
Version 1
# This changes directory & runs the authorisation in one line.
# If you want to use it, replace XXX with your Username.
cd /Users/XXX/Library/CloudStorage/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6FC9E059-46E3-4200-90F2-745362247D62 && xattr -rd com.apple.quarantine cmd
Version 2
# The problem is that if you have Macs with different User names (I do), the path will be wrong.
# This version sets a variable to the current User account and replaces that bit of the path, so cd-ing should work anywhere.
# If you want to use it, it should work as is.
current_user=$(id -un) && cd "/Users/$current_user/Library/CloudStorage/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6FC9E059-46E3-4200-90F2-745362247D62" && xattr -rd com.apple.quarantine cmd