-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show code eval in repl option #1470
Conversation
The |
Thanks! Now trying it. Some spontaneous comments:
Something to keep in mind: Sometimes people ask for an option to not display evaluations inline. (So far, no-one has found it important enough to send a PR, and maybe I haven't really encouraged it because it's one more setting.) If we would add such an option I imagine it would be something like:
And then that would play well with this option if it was named something like |
Adding my 2 cents here.
I agree that adding something like "repl window" is helpful for clarity. @PEZ Is there a reason for the |
Good points about the settings name suggestions, @bpringe ! The reason to keep these particular two together with the same prefix is that it will show them together in the settings UI. The reason to name it |
I like calva.evalResultsDisplayLocation or calva.evaluationResultsOptions and add a fourth option for no-display. I'll try to get the other changes in today. The hotkey was just the first free one I found. I'm very open to something better like ctrl+o, something. |
I think |
I can see that happening. Then I'll only add the |
I haven't removed the other options yet to keep the commit/PR easier to diff. If you still want to remove them I'll do it in a new commit or a second PR. |
This is great stuff. I left a suggestion above and then there's the merge conflict. Then we're good to go! As for the send-to-repl commands. I think it might still be useful to have them, but we can rename them to something like Paste current form in the REPL window. But I agree with you, let's do it separately so that we don't get stuck on the wording and stop this greatness from merge. |
Rebased + changed the hotkey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What has Changed?
showEvalCode
option->code
to status barevaluateCode
function can takeshowEvalCode
as an extra option to overwrite the setting (useful for custom commands that don't really make any sense in the repl window, going to use that for custom tooltips later)Fixes #1465
My Calva PR Checklist
I have:
dev
branch. (Or have specific reasons to target some other branch.)published
. (Sorry for the nagging.)[Unreleased]
entry inCHANGELOG.md
, linking the issue(s) that the PR is addressing.ci/circleci: build
test.Ping @PEZ, @bpringe