Fork me on GitHub
#cursive
<
2019-09-16
>
dazld08:09:00

are there any options for the reformatting code command?

dazld08:09:44

for example, i’ve copy pasta’d a big error message that’s all one line, and I’d prefer to see it formatted over multiple lines

dazld08:09:52

but the reformat command leaves it on one

vemv09:09:26

pprint or zprint can help, over the repl

dazld09:09:11

thanks! zprint looks super promising

dazld09:09:20

i’m just trying to set it up in intelliJ now..

dazld09:09:22

there’s a thing called pipeprofen that looks perfect for zprint

kenny18:09:59

Renaming certain keywords using the Refactor &gt; Rename action can take a really long time. For example, I have a keyword named :point-stabilizer-record/key that I renamed to :unstable-point-record/key. It took a solid minute for Cursive to find all the usages for the keyword even though it was only used in 2 places in all of my projects.

kenny18:09:22

When renaming, a popup shows up that is title "Looking for Usages". It says "Searching for key...". It seems like it's search for all usages of "key" which could be pretty big.

cfleming23:09:26

Yes, that’s right. Unfortunately that’s the way it has to work. The keyword could appear as ::key, ::alias/key or the FQN, and additionally it could be destructured as key. The key part is the only constant part of all those cases.