Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-roam-find-file doesn't show contents of roam directory #12

Open
borgauf opened this issue Jan 21, 2021 · 1 comment
Open

org-roam-find-file doesn't show contents of roam directory #12

borgauf opened this issue Jan 21, 2021 · 1 comment

Comments

@borgauf
Copy link

borgauf commented Jan 21, 2021

In your next-to-final step after restarting Emacs

Invoke org-roam-find-file by typing C-c n /, and then press TAB to let Emacs list the titles of your files...

I am not shown the contents of my roam directory, just a blank mini-buffer. But if I invoke org-roam-find-directory I do get my roam directory where the two files new-file.org and second-file.org. I can chose these, and then, yes, org-roam seems to know about them, i.e., I invoke the backlink buffer and see that my two files created in the previous guide are noted.

Also, in this guide you don't establish a roam directory, i.e., (org-roam-directory "~/Dropbox/org/roam/")

This is my init based on what you say here and the main org-roam readme Installation section

(use-package org-roam
  :ensure t
  :hook
  (after-init . org-roam-mode)
  :custom
  (org-roam-directory "~/Dropbox/org/roam/")
  :bind (:map org-roam-mode-map
              (("C-c n l" . org-roam)
               ("C-c n f" . org-roam-find-file)
               ("C-c n g" . org-roam-graph))
              :map org-mode-map
              (("C-c n i" . org-roam-insert))
              (("C-c n I" . org-roam-insert-immediate))))

(global-set-key (kbd "C-c n r") #'org-roam-buffer-toggle-display)
(global-set-key (kbd "C-c n b") #'org-roam-switch-to-buffer)
(global-set-key (kbd "C-c n d") #'org-roam-find-directory)
(global-set-key (kbd "C-c n c") #'org-roam-db-build-cache)

(require 'company-org-roam)
(push 'company-org-roam company-backends)

Disclaimer: I didn't start this guide with emacs -Q, rather, my existing Emacs/org-mode config.

@nobiot
Copy link
Owner

nobiot commented Jan 22, 2021

In your config, org-roam-find-file appears to be bound to a different keyword ("C-c n f" . org-roam-find-file).

Does this work, instead of "C-c n /"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants