pimentel / atom-r-exec

Send R code to various R consoles from the Atom editor
https://atom.io/packages/r-exec
MIT License
19 stars 8 forks source link

keep focus on terminal #16

Open rpietro opened 8 years ago

rpietro commented 8 years ago

Hi, am using atom-r-exec for mac, running on iterm. have been trying to keep the cursor focused on the terminal, but this doesn't seem to work. have tried to setings page as well as adding 'atom.config.set('r-exec.focusWindow', false)' to init.coffee

any thoughts? thanks

pimentel commented 8 years ago

the variable r-exec.focusWindow is meant to focus the window only after the command has been sent.

if I am understanding you correctly, 1 way you can do this is by changing the settings in iterm to follow the cursor.

pimentel commented 8 years ago

hey @rpietro any thoughts on this? i'd like to help if possible

dtenenba commented 8 years ago

I have the exact opposite problem. With r-exec.focusWindow set to false the focus still shifts to iTerm each time I press command-enter. I would like the focus to stay with atom.

pimentel commented 8 years ago

That is strange, @dtenenba. Thanks for reporting. Is this a constant issue or does it only happen sometimes? Any other symptoms when it happens?

dtenenba commented 8 years ago

I don't see any other symptoms. It is constant.

pimentel commented 8 years ago

@dtenenba I just looked at the code and I think I know the issue. I will try to fix it this weekend.

pimentel commented 8 years ago

@dtenenba fixed in the development version. I'm going to fix a few other minor bugs and make that option you requested in the other thread, then push the new version in the coming days.

dtenenba commented 8 years ago

@pimentel It works for me! Thanks! Close if you see fit....

dtenenba commented 8 years ago

@pimentel Actually it seems broken again with the development version. Once again it is changing the focus to iTerm despite the Focus Windows checkbox not being checked.