Fork me on GitHub
#emacs
<
2022-03-03
>
anonimitoraf04:03:44

Hey guys, I recently switched from ivy -> vertico. One thing I'm missing is being able to: • Search a project with some string • Preview each match (i.e. get shown the file for each match) Anyone know if something like this is supported for vertico?

mpenet04:03:57

consult adds this (and more).

anonimitoraf06:03:04

Ah cool, I'll check it out

anonimitoraf07:03:16

(consult-customize
    consult-ripgrep consult-git-grep consult-grep
    consult-bookmark consult-xref
    consult--source-bookmark
    :preview-key '(:debounce 0.25 any))
Sweet, just what I wanted

mpenet07:03:45

consult if full of gems

anonimitoraf07:03:08

Yeah I've been skimming the readme. Any other ones you use yourself @mpenet?

mpenet07:03:11

if you pair its usage with embark you can get really nice workflows

👌 1
mpenet07:03:05

yes, consult-line (equivalent of swiper) and a few others

👍 1
anonimitoraf07:03:34

Sweet as, I'll check it out

jmckitrick11:03:46

@mpenet consult and embark are the 2 you are talking about?

jmckitrick11:03:18

Hmm. I need to decide if it’s worth switching from counsel/swiper etc :thinking_face:

jmckitrick12:03:21

Well, I’m seriously considering it. What’s the best way to avoid a nasty learning curve or reconfiguration nightmare? I have everything dialed in nicely and I love it, but I’m always looking for ways to improve and replace outdated tools.

mpenet12:03:31

I'd say go all in an replace ivy/swiper/counsel with vertico/consult/embark/orderless/marginalia, in my experience they are much easier to configure

mpenet12:03:14

ivy is quite an enormous package that entangles with a lot of other packages, I remember having to fight against it quite a bit when I was using it

mpenet12:03:55

either use an existing user config as base, or just go through the readme of vertico, it gives a lot of hints on how to make it all work together

mpenet13:03:08

then you'll discover about corfu vs company and dig yourself deeper into that rabbithole 🙂

mpenet13:03:49

most of these packages are either from the same author or people that all contribute to the same bunch of repositories. Small composable pieces

jmckitrick13:03:08

ok, that will be my Friday emacs project!