Closed alperenkose closed 2 months ago
Hi @alperenkose -- I suspect that the issue is that consult works only with a particular set of completions systems (see here) and helm isn't one of them. So if you want to use consult-notes, you'd have to turn off helm-mode and either use icomplete (which is built-into emacs) or one of the other supported systems (e.g. I use vertico).
Oh sorry for being dumb, it works if I disable helm-mode :) Is it possible to bypass helm or set specific completion system for a command like "consult-notes" in this case?
hi @alperenkose -- I'm not sure if you still need to figure this out but something like the below should work (though I have not tested it!)
(defun toggle-denote-and-completion-backends ()
"Toggle between Helm and Vertico/Consult/Consult-notes setups and call Denote."
(interactive)
(if (bound-and-true-p helm-mode)
(progn
;; Disable Helm
(helm-mode -1)
(helm-projectile-off)
;; Enable Vertico, Consult, and Consult-notes
(vertico-mode 1)
(consult-notes-mode 1)
;; Call Denote
(denote))
(progn
;; Disable Vertico, Consult, and Consult-notes
(vertico-mode -1)
(consult-notes-mode -1)
;; Enable Helm
(helm-mode 1)
(helm-projectile-on). ;; only if you use projectile...
;; Call Denote
(denote))))
Hi,
I want to work with
consult-notes
fordenote
but I'm not able to open it as it crashes with the following error when I try to run. I tried downgrading helm and consult packages but it didn't help. I'm a dummy at emacs lisp. Could you please help what could be the problem?Thanks,