-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Summary
Hi! Found this via the https://github.com/logseq/awesome-logseq -- the functionality seems like it'd be great, thanks for building this! However, after setting it up, I'm having some issues:
When using C-c C-o
on a page or ID link, clicking the link in the Emacs UI or using M-x org-logseq-open-link
I'm getting grep searching error
.
My Steps
- Install via Straight
- Set
org-logseq-dir
variable (which I've verified to be correct via Emacs variable explorerC-h v
) - Execute
M-x org-logseq-mode
in the current buffer
Environment info:
- Emacs version 27.1
- grep version: grep (GNU grep) 3.6 Packaged by Homebrew
- I'm on macOS
Error
grep searching error
in status bar.
Debugging
I see the page query here:
Line 82 in feba4fd
('page "grep -niR \"^#+\\(TITLE\\): *%s\" \"%s\" --exclude-dir=\".git\"" ) |
If I run the following grep command from my org-logseq-dir
in zsh
grep -niR "^#+\\(TITLE\\): *Apr 4th, 2021" --exclude-dir=".git"
(manually created based on that query), I'm seeing the grep result:
journals/2021_04_04.org:1:#+TITLE: Apr 4th, 2021
So it seems like the base grep query works. However, when I add in the "%s"
part of the query, it causes grep: Apr 4th, 2021: No such file or directory
, which looks like it could be triggering the error line I'm seeing:
Line 105 in feba4fd
(when (string-prefix-p "grep" result) |
Why is that extra part of the query necessary? Apologies, as I'm not too experienced with grep.