davidshepherd7 / terminal-here

An Emacs package to open an external terminal emulator in the current directory
GNU General Public License v3.0
73 stars 12 forks source link

support for remote terminals when editing over tramp ssh #11

Closed wbolster closed 6 years ago

wbolster commented 7 years ago

opening a remote ssh shell in the correct directory would be awesome.

(fwiw, this feature works in nautilus, the gnome file browser, which uses gvfs.)

wbolster commented 7 years ago

fwiw, the ssh command that gets executed by nautilus is this:

ssh -t host cd '/path/to/dir' && exec $SHELL -
davidshepherd7 commented 7 years ago

Yeah this would be cool, and shouldn't be too hard to implement. I'll look into it when I get a chance, possibly this weekend sometime.

wbolster commented 7 years ago

fyi, gnome-terminal, xterm and the x-term-emulator on linux take a -c (or -e, cannot remember now, typing this on phone) to launch a terminal with a command.

davidshepherd7 commented 6 years ago

This might work now. It works for me at least, and I wrote some tests which pass!

Let me know if you have any issues :+1:

wbolster commented 6 years ago

awesome, i'm gonna give this a try later. thanks!