Fork me on GitHub
#emacs
<
2021-11-10
>
mg00:11:35

I've been having this issue with projectile for a while. The projectile-grep functionality turns up a lot of stuff from output directories in my projects that are gitignored - target , cpcache , resource folders with compiled js, etc - and reading the documentation it seems like it's supposed to follow the gitignore. This is making projectile-grep basically useless for me in any clojurescript project because of all the noise. Anyone run into this or know what I can do to fix?

deleted06:11:02

can you make it use the silver searcher or ripgrep? those will respect ignore files

1
vemv09:11:58

especially ripgrep :) it was frustrating with ag

iarenaza09:11:10

If I understood you right, you can use projectile-ripgrep (`C-c p s r` by default) and projectile-ag (`C-c p s r` by default), if you prefer them. Of course you need to have ripgrep and/or silver searcher installed. If you don't want to learn new key chords, you can always remap the projectile-grep keychord (`C-c p s g` by default) to any of the other two functions.

Imdad Ahmed09:11:29

Hello, is there something that i can use to prettify an edn buffer to be able to read it easily?

Imdad Ahmed10:11:03

Thanks that worked

cider 1
ericdallo19:11:55

What commands/shortcuts do you use to format a inline EDN to a pretty printed EDN?

vemv19:11:52

is this question different from the one right above?

ericdallo19:11:05

Yeah, I'd like something quick when I don't have any repl 😅

ericdallo19:11:16

not if there is something for that

tvaughan20:11:12

You could use C-u M-| on region to replace with output of shell command, e.g. jet

tvaughan20:11:05

I see others have already suggested this

ericdallo20:11:49

I didn't know about C-u M-| though :)

dpsutton19:11:59

i don’t have one written but i think you can execute shell commands on a region, shell out to jet and replace the highlighted region

dpsutton19:11:36

:chefs_kiss:

dpsutton19:11:22

i’d modify that to use the interactive region if present and fall back to the buffer’s contents but that’s exactly what i had in mind

ericdallo19:11:00

Thanks, I was hoping something built-in on clojure-mode or some function already available in some package though

dpsutton19:11:04

oh, i’m misreading it. that’s exactly what i’d want

vemv19:11:21

perhaps there's some crazy package but not that I've heard of there's parseclj/parseedn in the opposite direction

ericdallo20:11:29

Yeah, I just thought it was something obvious already built-in somewhere, thanks folks!

borkdude20:11:05

@dpsutton feel free to PR a change

dpsutton20:11:51

no it’s what i would want. i misread the current buffer call to be getting the entire buffer’s text, rather than just the name

👍 1