spacemacs 2022-03-17

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 ...

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

i didn't understand the description at first glance

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

@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

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

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

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

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

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

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

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

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

# 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