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 explorer C-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:
|
('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:
|
(when (string-prefix-p "grep" result) |
Why is that extra part of the query necessary? Apologies, as I'm not too experienced with grep.
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-oon a page or ID link, clicking the link in the Emacs UI or usingM-x org-logseq-open-linkI'm gettinggrep searching error.My Steps
org-logseq-dirvariable (which I've verified to be correct via Emacs variable explorerC-h v)M-x org-logseq-modein the current bufferEnvironment info:
Error
grep searching errorin status bar.Debugging
I see the page query here:
org-logseq/org-logseq.el
Line 82 in feba4fd
If I run the following grep command from my
org-logseq-dirin zsh(manually created based on that query), I'm seeing the grep result:
journals/2021_04_04.org:1:#+TITLE: Apr 4th, 2021So it seems like the base grep query works. However, when I add in the
"%s"part of the query, it causesgrep: Apr 4th, 2021: No such file or directory, which looks like it could be triggering the error line I'm seeing:org-logseq/org-logseq.el
Line 105 in feba4fd
Why is that extra part of the query necessary? Apologies, as I'm not too experienced with grep.