killdash9 / better-shell

Emacs shell management
GNU General Public License v3.0
40 stars 7 forks source link

"cd /scp:host:/foo/bar": No such file or directory #4

Closed pmiddend closed 7 years ago

pmiddend commented 8 years ago

First of all, thanks for a plugin that is really, really handy in my day-to-day emacs usage!

Now, I've created a useful keybinding

(global-set-key (kbd "C-'") (lambda () (interactive) (better-shell-shell 4)))

To invoke a shell for the file I am currently visiting. I'd like it to reuse an existing shell if possible, otherwise open a new one. This works locally, but not remotely. If I have a shell open in /scp:host:/path and I invoke the above command when I'm visiting /scp:host:/path/dir/file, I get:

bash: cd: /scp:host:/path/dir: No such file or directory

Is that a configuration issue on my side, or can it be fixed? It doesn't work with ssh: either, by the way.

killdash9 commented 7 years ago

I've fixed both the "No such file or directory" bug and the not working with ssh bug. I'll test it out locally for a couple weeks and then push it out. Thanks for reporting it and sorry it has taken so long.