Closed hyperfocus1337 closed 2 weeks ago
As was mentioned earlier in https://github.com/nobiot/md-roam/issues/81#issuecomment-1913264726, setting the following makes the range error disappear.
(setq org-roam-completion-everywhere nil)
Make sure it's embedded into (use-package! md-roam)
, like so:
(use-package! md-roam
:after org-roam
:config
(set-company-backend! 'markdown-mode 'company-capf) ; add company-capf as company backend in markdown buffers
(setq org-roam-completion-everywhere nil)
(setq org-roam-file-extensions '("org" "md")) ; enable Org-roam for a markdown files
(md-roam-mode 1) ; md-roam-mode needs to be active before org-roam-db-sync
(org-roam-db-autosync-mode 1)
(setq org-roam-capture-templates
'(("d" "default" plain "%?"
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: ${filetags}\n")
:unnarrowed t)))
(add-to-list 'org-roam-capture-templates
'("m" "Markdown" plain ""
:target (file+head "%<%Y%m%d%H%M%S>-${slug}.md" "---\ntitle: ${title}\nid: %<%Y%m%d%H%M%S>\ntags:\n- \n---\n")
:unnarrowed t)
(map! :map doom-leader-map "n r o" (λ! (let* ((full-path (buffer-file-name))
(pattern "/notes/\\(.*?\\)\\.md$")
(vault-name "notebook")
obsidian-uri match)
(when (and full-path (string-match pattern full-path))
(setq match (match-string 1 full-path))
(setq obsidian-uri (format "obsidian://open?vault=%s&file=%s" vault-name match))
(start-process "open-obsidian" nil "open" obsidian-uri)))))))
This fixes the range error. Closing this issue.
Amazing idea, thanks for your contribution.
Managed to find and create markdown notes using
org-roam-capture
, but unfortunately it is not yet fully functional.I noticed my error aligns with https://github.com/nobiot/md-roam/issues/82, it shows
org-roam-complete-everywhere()
.Is there anyway to disable completions while using this package? I can do without them... just want the error to disappear so your package becomes usable.
Full backtrace:
Using the following code to install:
Using the following code to configure:
Hoping I can be pushed in the right direction, many thanks for any help provided.