So IntelliJ works in different way to Eclipse, as I understand it. The
terminology is a little confusing - in IntelliJ a project is what I
normally think of as a project, so in the case of a multi-module project
like CCW or Leiningen, the project is the whole thing (CCW or lein) and the
sub-projects (leiningen.core, or ccw.branding, .core, .feature etc) are
called modules. A project is opened in a dedicated window, so there's no
concept like the Eclipse workspace, where you could have both lein and CCW
open at once in the same window (I think, I'm a little fuzzy on Eclipse,
and what little knowledge I do have is years out of date).

So in Cursive, the REPLs are specific to a project but you can have
multiple REPLs for a particular project (so a CLJ one and a CLJS one, or I
tend to have one open on my current IDE instance, one on my external
instance I'm debugging, and perhaps a test REPL). The REPLs are shown in a
toolwindow on one side of the screen, and the different REPLs are tabs
within that.

So when the user performs an operation which requires a REPL, it uses the
currently selected REPL (active tab) of the current project. This generally
works pretty well, since the REPL is always related to the correct project,
and the user generally knows which REPL they're working in. It can get
confusing in my case though when I have three very similar REPLs open, but
I just have to be careful or restart them from time to time :-)

On 2 December 2014 at 12:14, Laurent PETIT <[email protected]> wrote:

>
>
> 2014-12-02 0:02 GMT+01:00 Colin Fleming <[email protected]>:
>
>> Looks like Laurent is one ahead of me :-). Cursive can't do this right
>> now, although it's a much-requested feature with an issue in the tracker.
>> I'll try to add this soon. In the meantime, you can use the Search REPL
>> History action which narrows down on typing - not ideal, but it should work
>> for now. You can invoke that from any context, you don't have to be in the
>> REPL editor, and you can use Shift-Enter to execute immediately rather than
>> copying to the REPL editor and focusing it.
>>
>
> Wow, being able to use the Search REPL History action from any context is
> great!
>
> BTW, how do you solve the "which repl for which editor?" issue in Cursive?
> In CCW, sometimes ago the REPL to use was derived from the project the
> files were located. These days, it's just the last active REPL that is used
> (more freedom for the user, but arguably less intelligence in the IDE).
> What will be used tomorrow remains an open subject, currently users seem
> happy ...
>
>
>>
>> Cheers,
>> Colin
>>
>> On 2 December 2014 at 11:47, Laurent PETIT <[email protected]>
>> wrote:
>>
>>> FWIW, please note that it's now possible to script Counterclockwise in
>>> such a way.
>>>
>>> The following link shows how to add a new keybinding for calling
>>> (user/reset) on the active REPL :
>>> https://github.com/laurentpetit/ccw-plugin-repl#repl-keybindingsclj
>>>
>>> (Requires a Counterclockwise built from the master branch, e.g.
>>> http://updatesite.ccw-ide.org/branch/master/CI0176-master-gitf1930d7/ )
>>>
>>> Was just working on it this week-end, thus the high-jack of the thread
>>> ;-)
>>>
>>> --
>>> Laurent
>>>
>>>
>>> 2014-12-01 17:14 GMT+01:00 Dylan Butman <[email protected]>:
>>>
>>>> I've been playing around with Cursive lately (it seems awesome if I can
>>>> ever get comfortable with the keybindings!). I emacs/cider, I have a custom
>>>> keybinding that injects user/reset to trigger something like
>>>> https://github.com/stuartsierra/reloaded/blob/master/src/leiningen/new/reloaded/templates/user.clj#L48.
>>>> Is there a way to do this in cursive?
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Clojure" group.
>>>> To post to this group, send email to [email protected]
>>>> Note that posts from new members are moderated - please be patient with
>>>> your first post.
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/clojure?hl=en
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Clojure" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Laurent Petit
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to [email protected]
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to [email protected]
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Laurent Petit
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to