Fork me on GitHub
#spacemacs
<
2022-03-17
>
Drew Verlee15:03:25

How would i search project wide for the word currently under my cursor? I don't see anything here https://practical.li/spacemacs/navigating-code/ looking through the spacemacs docs ...

practicalli-john20:03:00

Selected words are used by the project wise search SPC v to select the current word SPC / to search with the highlighted word as the default patter, which can then be edited

Drew Verlee15:03:07

i didn't understand the description at first glance

alexdavis15:03:43

space * should work I think (at least it does for me)

Mario C.15:03:46

@drewverlee I usually do SPC s h to highlight word and get into the Symbol Highlight Transient State then do a / and it will search project wide

Mario C.15:03:36

space * is new for me but looks like it works too :thumbsup:

Drew Verlee15:03:33

thanks alex and mario. ill try spc s h to.

Drew Verlee15:03:53

any cool tricks you picked up in the last year that really helped with clojure development?

alexdavis16:03:37

Getting lsp setup is a big one, some weirdness comes with it sometimes but overall it unlocks a lot of cool stuff

alexdavis16:03:32

I use , g g to jump to definitions of functions/variables and then , g b to jump back all the time

alexdavis16:03:44

also , g s to get a searchable list of symbols in the project

ericdallo17:03:26

I don't use spaceemacs, I use doom-emacs, IMO there are things to improve on both about the need of those setups. things like: add a variable to decide which completion use (cider or lsp), which definition-source use and thingsl ike that

practicalli-john20:03:00

Selected words are used by the project wise search SPC v to select the current word SPC / to search with the highlighted word as the default patter, which can then be edited

jumar22:03:01

I use SPC * all the time - that's typically the fastest way for me. You can also do * f to search in a specific directory

practicalli-john23:03:52

# or * in Evil normal mode enters symbol highlight transient state, when the cursor is on a symbol. / then searches across the project This is the smallest number of keys required https://github.com/matthiasn/talk-transcripts/tree/master/Hickey_Rich