henrikpersson / rsub

Use rmate with Sublime Text.
458 stars 70 forks source link

Option to open rsub files in a separate window #41

Closed franciscolourenco closed 8 years ago

franciscolourenco commented 9 years ago

If there is no open window when an incoming connection is received, rsub already creates a one. This is a request for an option which makes rsub open files always in a separate window. Ideally rsub would assign a window to itself, and open all files in that window.

randy3k commented 9 years ago

I have submitted two PRs, one to rmate, another #42.
With these two PRs, one to do rmate -n foo.txt.

franciscolourenco commented 9 years ago

Nice, what about an option in rsub so you don't have to specify -n all the time?

randy3k commented 9 years ago

note that the -n option will always open a new window, it is a little bit different from what you expect (i.e., open all files in the same new window).

if you really want to open each file in a different new window, you can make an alias rmate to rmate -n.

franciscolourenco commented 9 years ago

I guess that is also a valid way of doing it :)

If your pull request gets merged, let's still leave this open for the option to make all rsub files open in a dedicated window.

davidolrik commented 9 years ago

@aristidesfl You could use the perl version of rmate, it's mostly the same but defaults to opening files in new windows.

franciscolourenco commented 9 years ago

@davidolrik even without modifications to rsub like the ones in @randy3k pull request?

randy3k commented 9 years ago

My pr to rub has been merged.

davidolrik commented 9 years ago

@aristidesfl No, those changes are needed but they have been merged so everything is awesome!

KES777 commented 8 years ago

Why ticket is not closed yet if resolved?