Skip to content
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 ability to eval for under cursor in the redl #13

Open
qiuwei opened this issue Jun 5, 2013 · 4 comments
Open

Add ability to eval for under cursor in the redl #13

qiuwei opened this issue Jun 5, 2013 · 4 comments

Comments

@qiuwei
Copy link

qiuwei commented Jun 5, 2013

How can I evaluate a form under cursor in the debug repl?

It seems :Replhere would create a debug repl automatically. But how can I send forms to it like "cpp" in vim-fireplace?

Thanks!

@mascip
Copy link
Contributor

mascip commented Jul 31, 2014

I'm a very new user, but as far as I've seen, it's not possible. You either use vim-fireplace's "cpp" to execute in the code's buffer, or you copy your code (with "yab" for example, to copy the current block), change buffer, paste it in the REPL, and execute.

But I agree that it would be a nice feature. I have no idea what it involves in terms of implementation, though.

@dgrnbrg dgrnbrg changed the title Could you give more description of the working flow? Add ability to eval for under cursor in the redl Aug 1, 2014
@dgrnbrg
Copy link
Owner

dgrnbrg commented Aug 1, 2014

I have changed the target of this issue. There's 2 ways that this could be done: either we could make Redl first-class nrepl middleware, in which case cpp would directly connect to it, or we could add a new command, like "crp", that would send the form under the cursor to the redl. The tricky part here is choosing which redl to send it to--I don't think that's a simple problem, since I think it's very hard to determine which ones are currently opened.

@mascip
Copy link
Contributor

mascip commented Aug 2, 2014

The first solution sounds very good, but how much work does it represent for you? Would there be other benefits from this approach?

@dgrnbrg
Copy link
Owner

dgrnbrg commented Aug 2, 2014

The first solution would require me to learn how nrepl works--last I looked, it seemed pretty confusing & specific to emacs. Perhaps the docs are better now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants