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

Parse remote user name from currently open TRAMP buffer #3261

Closed
OknoLombarda opened this issue Oct 24, 2022 · 0 comments
Closed

Parse remote user name from currently open TRAMP buffer #3261

OknoLombarda opened this issue Oct 24, 2022 · 0 comments
Labels
enhancement good first issue A simple tasks suitable for first-time contributors

Comments

@OknoLombarda
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Now, when I try to jack-in from TRAMP buffer, CIDER tries to open SSH tunnel using current local user name, even though TRAMP buffer uses a different user to connect

Describe the solution you'd like

Instead of manually formatting path here
https://github.com/clojure-emacs/cider/blob/master/nrepl-client.el#L573
we could use (buffer-file-name) to get current buffer's name to get all necessary properties for connection

Additional context

I'm trying to connect to a remote PC with username that is different from the one on my local machine. I could, of course, just create user with this name on a remote PC, but I don't really want to create a separate user just to be able to connect from CIDER. Also, there is this issue, that could also be resolved by applying proposed solution

@bbatsov bbatsov added enhancement good first issue A simple tasks suitable for first-time contributors labels Oct 24, 2022
OknoLombarda pushed a commit to OknoLombarda/cider that referenced this issue Dec 10, 2022
OknoLombarda pushed a commit to OknoLombarda/cider that referenced this issue Dec 10, 2022
OknoLombarda pushed a commit to OknoLombarda/cider that referenced this issue Dec 10, 2022
OknoLombarda pushed a commit to OknoLombarda/cider that referenced this issue Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue A simple tasks suitable for first-time contributors
Projects
None yet
Development

No branches or pull requests

2 participants