Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen foreground #83

Closed
rodrigorm opened this issue Aug 8, 2014 · 7 comments
Closed

Screen foreground #83

rodrigorm opened this issue Aug 8, 2014 · 7 comments

Comments

@rodrigorm
Copy link

As you said at #27 screen does not works with foreground, can you explain why not? I really like to help making this work, because screen is my main tool.

@tpope
Copy link
Owner

tpope commented Aug 8, 2014

The tmux support works by triggering off the resize event when the split closes. Screen splits don't work that way. This isn't really fixable, but if you're on Linux, you can start Vim with --servername vim, and then the screen handler can use Vim's remote server capabilities instead.

@tpope tpope closed this as completed Aug 8, 2014
@rodrigorm
Copy link
Author

I have tested the resized event with screen split manually and it have been called. But I try to add the funcionality to the plugin and I cant, could you help me?

@tpope
Copy link
Owner

tpope commented Aug 11, 2014

The resize event itself is fine. The problem is tmux's panes automatically close when the task completes, whereas in screen another window is selected.

@rodrigorm
Copy link
Author

I know, but I have make a simple test to auto remove the bottom split when script finish:

$ cat test.sh
echo "At $WINDOW"
echo 'Hello World'; sleep 5
screen -X eval "focus bottom" "remove"

And call the script:

$ screen -X eval "split" "focus down" "resize 10" "screen -ln -fn -t make bash test.sh" "focus up"

@rodrigorm
Copy link
Author

Can I push my branch and you see my attempt?

@tpope
Copy link
Owner

tpope commented Aug 11, 2014

Sure. Your plan seems plausible but I'm not sure how easy it will be.

@rodrigorm
Copy link
Author

I created the pull request #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants