spacemacs

Drew Verlee 2022-03-17T15:25:25.503329Z

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-johnny 2022-03-17T20:54:00.317899Z

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 Verlee 2022-03-17T15:25:43.415669Z

space *

Drew Verlee 2022-03-17T15:26:07.416909Z

i didn't understand the description at first glance

alexdavis 2022-03-17T15:27:43.665689Z

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

Mario C. 2022-03-17T15:43:46.706879Z

@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. 2022-03-17T15:44:36.874939Z

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

Drew Verlee 2022-03-17T15:46:33.822079Z

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

Drew Verlee 2022-03-17T15:46:53.217599Z

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

alexdavis 2022-03-17T16:48:37.311979Z

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

alexdavis 2022-03-17T16:49:32.247689Z

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

alexdavis 2022-03-17T16:50:44.112759Z

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

ericdallo 2022-03-17T17:31:26.422849Z

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

jumar 2022-03-17T22:15:01.888879Z

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-johnny 2022-03-17T23:41:52.643269Z

# 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