Hi @sballin, thanks for this brilliant workflow. It's indeed godsend.
However, I can't use the body search (nb) because I'm getting this security issue (and "Security & Preferences" pane doesn't show the "Allow" option (because I've already allowed it and can use title search and folder search).
The error_log shows this:
panic: runtime error: slice bounds out of range [104:100]
goroutine 1 [running]:
main.BuildSubtitleAddition(0xc00002240a, 0x68, 0xc000026070, 0x64, 0x208af58ea, 0x1, 0x64, 0xc000022500)
/Users/sean/Dropbox (MIT)/Dotfiles/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C13422B2-62E5-4A91-A8D9-65E18FA46712/search_notes/main.go:216 +0x2d4
main.LiteDB.GetResults(0xc000242000, 0x208af58ea, 0x1, 0x208af58e5, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/sean/Dropbox (MIT)/Dotfiles/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C13422B2-62E5-4A91-A8D9-65E18FA46712/search_notes/main.go:317 +0xd51
main.main()
/Users/sean/Dropbox (MIT)/Dotfiles/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C13422B2-62E5-4A91-A8D9-65E18FA46712/search_notes/main.go:403 +0x138
touch: Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.ED7FF581-A6D4-467A-9095-7248E1201713/update.py: No such file or directory
touch: Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.ED7FF581-A6D4-467A-9095-7248E1201713/update.py: No such file or directory
panic: runtime error: slice bounds out of range [104:100]
goroutine 1 [running]:
main.BuildSubtitleAddition(0xc00002248a, 0x68, 0xc000026070, 0x64, 0x208b558ea, 0x1, 0x64, 0xc000022580)
/Users/sean/Dropbox (MIT)/Dotfiles/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C13422B2-62E5-4A91-A8D9-65E18FA46712/search_notes/main.go:216 +0x2d4
main.LiteDB.GetResults(0xc000242000, 0x208b558ea, 0x1, 0x208b558e5, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/sean/Dropbox (MIT)/Dotfiles/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C13422B2-62E5-4A91-A8D9-65E18FA46712/search_notes/main.go:317 +0xd51
main.main()
/Users/sean/Dropbox (MIT)/Dotfiles/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C13422B2-62E5-4A91-A8D9-65E18FA46712/search_notes/main.go:403 +0x138
Despite trying the spctl --master-disable method and giving Alfred 4.app and search_notes binary almost all privacy privileges, I can't seem to get the search body function work.
Any solutions would be much appreciated.
Thanks! 🙂