Fork me on GitHub
#cursive
<
2016-11-27
>
sandbags09:11:08

@cfleming thank you!! 馃檪

sandbags09:11:18

(i just created a new namespace)

yonatanel13:11:49

Is there any shortcut to switch lines but only of parameters without the parenthesis, for example reordering required namespaces or map keys?

rauh13:11:08

@danielcompton Little late: Thanks for the link! I +1'd it.

imre14:11:07

@rauh I use ctrl+m and then ctrl+leftright to mark and select map entries etc

imre14:11:17

Works ok

yonatanel16:11:12

@imre What's ctrl+m for?

imre16:11:00

In my editor it's "mark" or something like that

imre16:11:23

Marks beginning or end of selection

imre16:11:07

You can then extend/shrink it using normal navigation

cfleming21:11:49

@lsenta The idea is that your build tool config file (project.clj, in this case, even though it鈥檚 generated from boot) should represent your project鈥檚 state, otherwise you risk having different behaviour in IntelliJ and when using lein on the command line. Why can鈥檛 you add the directories you need to :source-dirs or whatever?

cfleming21:11:18

@rauh Yes, this would be nice. I believe there鈥檚 an issue for it somewhere, but I can鈥檛 easily search right now.

cfleming21:11:50

@sandbags No problem! Glad it helps.

cfleming21:11:20

@yonatanel Do you mean to reorder a map key/value pair within the map?

cfleming21:11:00

You can do this now. The cursor needs to be right before the key, then move form up/down will move the key/value pair. Like this:

cfleming21:11:24

{:a 1
 :b 2
 |:c 3}

cfleming21:11:40

Where | is the caret. Move form up will produce:

cfleming21:11:05

{:a 1
 |:c 3
 :b 2}

cfleming21:11:19

This also works for other braced pair kinds like let bindings.

cfleming21:11:47

@imre You might like that too, if you鈥檙e not using it already.

imre22:11:40

Thanks @cfleming, already using it!