riscy / shx-for-emacs

An Emacs shell-mode (and comint-mode) extension that enables displaying small plots and graphics and lets users write shell commands in Emacs Lisp.
GNU General Public License v3.0
218 stars 10 forks source link

Directory tracking over remote connection #26

Closed Blade6570 closed 3 years ago

Blade6570 commented 3 years ago

If I am over ssh connection then :e <filename> is searching for the filename in the \tmp directory instead of the current directory. Is this a bug in my setup or is it desired?

I am on Emacs-27, Ubuntu 20.04. Installed the shx from Melpa and called it by M-x shx

riscy commented 3 years ago

Hi! Are you using :ssh (:help ssh) or ssh to connect to the host?

If you're using :ssh, shx should track your directory (and M-return should run shell-resync-dirs to resync you). (Unless they're a bug, and then we should dig deeper -- although I was just able to confirm this is working for me.)

If you're using ssh on its own, then shx won't be able to track the remote directory, and :e xyz won't work.

Blade6570 commented 3 years ago

Okay, I see the problem now. It works if I do :ssh but not if I open shx from a remote file with M-x.

Thanks