textmate / rmate

Edit files from an ssh session in TextMate
http://blog.macromates.com/2011/mate-and-rmate/
514 stars 81 forks source link

Please fix some doc issues #34

Closed perajovic closed 10 years ago

perajovic commented 10 years ago

For saving a huge amount of time to someone, please make a correction in the following things:

  1. in blog post http://blog.macromates.com/2011/mate-and-rmate/ you say that we should use 127.0.0.1. No, it needs to be localhost.
  2. with host: auto in /etc/rmate.rc it doesn't work, but with host: 127.0.0.1 it works.
  3. TM should be open locally if you want to user rmate.

Thanks. //EDIT Removed part about ruby20 -- it works with ruby20 as well (it was a gem issue) and added 3.

sorbits commented 10 years ago

Please read https://github.com/textmate/textmate/wiki/Writing-Bug-Reports and revise your report.

On 1 Aug 2014, at 1:06, Pera Jovic wrote:

For saving a huge amount of time to someone, please make a correction in the following things:

  1. rmate doesn't work with ruby 2.0 (not tested w/ 2.1) -- with 1.9 it works
  2. in blog post http://blog.macromates.com/2011/mate-and-rmate/ you say that we should use 127.0.0.1. No, it needs to be

``` localhost.

  1. with host: auto in /etc/rmate.rc it doesn't work, but with host: 127.0.0.1 it works.

Thanks.


Reply to this email directly or view it on GitHub: https://github.com/textmate/rmate/issues/34

sorbits commented 10 years ago

As for 1) the blog post has since been fixed (this was a revert gone bad), thanks for letting us know.

As for 2) Use 'auto' to detect the host from SSH — this can only be used when you can reach your Mac from your server, if you have to use 127.0.0.1 then auto is not for you (i.e. you need to go via a tunnel).

As for 3) rmate connects to a socket on your Mac and cannot itself launch something. It might be possible to have launch services handle this (by installing a daemon that is woken up when someone tries to connect to a certain port), but I don’t think launch services is meant for launching graphical applications (when someone connects to a port), and it does have a few problems, so it’s not something I plan to pursue.