Closed Whil- closed 3 years ago
@Whil- I remember seeing that issue some days ago, have you tried with the latest nroam from master?
If you can reproduce the issue with the latest version, could you provide a recipe to reproduce it?
org-roam-capture
on a new file or an existing file? Is the file empty?org-roam-capture
or org-roam-dailies-capture-today
?It was possible to reproduce it with a minimal config, using commit 71dad15 (latest as of now).
Using the default templates for org-roam-capture
and org-roam-dailies-capture-today
gives the two error messages above.
I'm on Emacs 27.1 on this PC, Org roam from master branch. (Configured using Straight)
@NicolasPetton Does it work to run the captures for you?
@Whil- can you try again with commit eebd4b9?
Ahh, found the solution!
I see now that you've already fixed this a bit further down the commit tree. I just hadn't noticed it myself.
It was fixed in commit 02a791b
My initialization code needed the same update that you did in the readme:
-(add-hook 'org-mode-hook #'nroam-mode)
+(add-hook 'org-mode-hook #'nroam-setup-maybe)
All is well again, thanks for the help! Tack!
Cool, I'm glad it's working for you as well.
PS: If you pull the latest changes, you'll see that nroam now includes a section for unlinked references.
I'm still seing a similar problem when capturing to an org-roam-dailies file. I have the following structure in the file:
* Journal
** 12:34 mid-day stuff
** 23:45 evening stuff
* Backlinks
and it looks like the capture is trying to insert the new **
entry before the line of nroam's * Backlinks
instead of after the preceding line… if you see what I mean 😅 (basically it's doing something equivalent to evil-org-open-above
from the readonly line, instead of evil-org-open-below
from the writable line just above)
Any clue how I can ensure that nroam doesn't get in the way?
Seems there is interference between nroam and org roam capture templates.
Using
org-roam-capture
leads to the following printed in the message-buffer:Using a custom daily capture template led to this: