Then I do not understand why when I do M-x consult I don’t see any of the available functions… Should I enable something? (I did not find vertico anywhere in the init.el).
Has consult-ripgrep-command been replaced with consult-ripgrep-args? I am trying to get rg to search only .org files but hitting a roadblock.
UPDATE: in the end, I used the following and it seems to work: (setq consult-ripgrep-args "rg --null --type org --line-buffered --color=never --max-columns=1000 --path-separator / --smart-case --no-heading --line-number .")
I want to try this setup, but I am not sure how to.
I have doom emacs, with a pretty standard configuration, and by looking at the docs it seems that vertico is already installed.
How should I install the proper things?
From what I understand I need to put in my init.el:
(doom! :input
;;chinese
;;japanese
;;layout ; auie,ctsrnm is the superior home row
:completion
company ; the ultimate code completion backend
vertico ;; THIS IS WHAT I NEED TO ADD?
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...
ivy ; a search engine for love and life
and then just use the function defined bms/org-roam-rg-search?
This is great, thanks for sharing. Does anyone know how I could modify this config to initially narrow the results to exclude certain lines? That is, there are certain lines in my notes that I generally don’t need to see in results (e.g. properties drawers), which end up cluttering the results.
I believe it depends on what completion framework you use. I use Vertico and consult-ripgrep just works in a similar way shown in the video as expected – the custom funtion bms/org-roam-rg-research above is a thin wrapper around consult-ripgrep anyway.
If you are using Ivy or Helm, it may not work as expected.