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
Add more commands to cider-eval-dwim #3502
Comments
You can do this with more complex prefix args, but I guess that won't fit very well the |
I agree - it would be very hard/risky to guess that the user possibly wants a "comment" output. There's nothing wrong to have multiple commands. An unrelated possible point for expanding "dwim semantics" is guessing what sexpr we want to eval depending on where
Now, say that point is here:
Do we mean to eval (+ 3 2) or the whole defn? A reasonable criterion is: if we're in a defn (or deftest, etc), eval the whole defn, if we're in a comment, only eval And perhaps in certain cases, ask the user ( |
Creating this issue to come up with more ideas for
cider-eval-dwim.
Right now, it's very close to covering all myeval-needs
in one nice command.Currently, it runs
cider-eval-region
andcider-eval-defun-at-point
depending on whether a region is active.It would be cool if it could run
cider-eval-defun-to-comment.
But how to support this intuitively is not clear to me.
I considered prefix args, but that's already taken for
cider-eval-defun-at-point
.Suggestions welcome for both how to add
cider-eval-defun-to-comment
, and other commands to include.The text was updated successfully, but these errors were encountered: