cider icon indicating copy to clipboard operation
cider copied to clipboard

new command `cider-copy-jack-in`

Open behrica opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Using CIDER on a remote machine would be eased in complex remote scenarious by:

  • open a shell in Emacs and "go ito the final remote server"
  • generate teh "jack-in-command' and "copy" it
  • paste it into remote shell

Describe the solution you'd like A Cider build in commnad such as:

(defun cider-copy-jack-in (params)
  "docstring"
  (interactive "P")
  (let ((params (thread-first params
                  (cider--update-project-dir)
                  (cider--update-jack-in-cmd))))
    (kill-new (plist-get params :jack-in-cmd))))

but full-featured, in case tghis command does not a consider all cases

Describe alternatives you've considered cider-connect and picking a remote host. This does only work for 2simple" ssh connection, but not for "complex" connections (such as multihop, or remote+docker)

Additional context There was a discussion here: https://clojurians.slack.com/archives/C0617A8PQ/p1688529209320339

behrica avatar Oct 13 '23 19:10 behrica

some design considerations: should allow for the cljs form, you might also need the cljs startup forms (shadow/select :app , etc)

dpsutton avatar Oct 13 '23 19:10 dpsutton