You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.
which is rather obvious on what it does but with the autocompletion I am unable to type it to REPL within Nightcode. Major difference of course is that in REPL the (println x) actually produces visible output while InstREPL doesn't as it only shows the return value, nil in this case.
As suggestions for fixing this, I'd like to
be able to disable the autocompletion for REPL or
let that caret positioning be indication that I want a newline instead or
push this request to Leiningen developers so that they could actually implement this as REPL option for us weirdos who like to format their REPL throwaway snippets :)
The text was updated successfully, but these errors were encountered:
Since I'm digging into NC for an embedded swing repl (older 1.3.2 version, but may still apply to 2+), I ran into this same usability issue. I'm a "weirdo" who typically copy-and-pastes from buffer to repl (even in emacs gasp). It's just hardwired into me....instead of using shortcuts and the like.
When I went to extend the embedded repl-interaction capabilities for nightclub [not using lein], I ran into a similar usability issue. Parinfer is cool, but it gets in the way at times, particularly when copying and pasting multi-line declarations. Case in point: a multi-line NS declaration gets inferred (at least in the version of parinfer I'm using) to be multiple independent forms. As a quick workaround, I hacked the default paste behavior and added some supplemental state to detect if we're pasting. The user has the ability to toggle on/of parinfer globally, and [soon] to copy/paste literally. This seems to balance out the best of both worlds: inference when I want it, literal multi-line forms when I'm copying / pasting, and the ability to gank parinfer totally if it's getting in the way. Perhaps it's something NC master can look at....
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If I type the following to REPL within Nightcode:
This gets autocompleted to
This is good. However if I place my caret as indicated by pipe:
and hit enter, the expression is evaluated as it's already a full expression. This is bad.
The full snippet I have is simply
which is rather obvious on what it does but with the autocompletion I am unable to type it to REPL within Nightcode. Major difference of course is that in REPL the
(println x)
actually produces visible output while InstREPL doesn't as it only shows the return value,nil
in this case.As suggestions for fixing this, I'd like to
The text was updated successfully, but these errors were encountered: