Can rmate be persuaded not to return focus to the terminal window when a tab/window it has opened closes?
I often open multiple tabs and windows over ssh using rmate. Whenever I close any of them focus reverts (after a short delay - probably the closing of the ssh tunnel after confirming a write or something) to the terminal window. If I also want to close the tab revealed by closing the first I hit Cmd+w, but the terminal gets the command because focus has switched! It's very annoying to have to get my terminals back in order so often.
Is this rmate's fault, or textmate? And can this behaviour be altered somehow?
On 8 Jan 2016, at 14:48, Justin Catterall wrote:
Can rmate be persuaded not to return focus to the terminal window when a tab/window it has opened closes?
You can edit the script, it is line 210: https://github.com/textmate/rmate/blob/master/bin/rmate#L210
For regular (local) mate we only set the option to ‘yes’ when -w/--wait is specified but I like the current default rmate behavior, though I wouldn’t mind making it an option (read from rmate.rc) or setting it to ‘no’ if more than one file is specified (which seems to make sense).
On 10 Jan 2016, at 22:15, Allan Odgaard mailinglist@textmate.org wrote:
On 8 Jan 2016, at 14:48, Justin Catterall wrote:
Can rmate be persuaded not to return focus to the terminal window when a tab/window it has opened closes?
You can edit the script, it is line 210: https://github.com/textmate/rmate/blob/master/bin/rmate#L210
For regular (local) mate we only set the option to ‘yes’ when -w/--wait is specified but I like the current default rmate behavior, though I wouldn’t mind making it an option (read from rmate.rc) or setting it to ‘no’ if more than one file is specified (which seems to make sense).
Thank you, Allan.
I support either of your suggestions for alternative behaviour mentioned in your reply.