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

Looses focus on shell exit #6

Open
brauliobo opened this issue Mar 18, 2023 · 4 comments
Open

Looses focus on shell exit #6

brauliobo opened this issue Mar 18, 2023 · 4 comments

Comments

@brauliobo
Copy link

Hello, I'm trying nested-tmux here

Everything seems to work, but when I exit one shell it looses focus to any pane and then all shortcuts stops working!

Maybe it is related to my custom configuration?

@aleclearmind
Copy link
Owner

I need to figure out a way to fix this.
But I've a restore-tmux script that fixes the problem:

#!/bin/bash

TMUX_PARENT=$(basename "$TMUX")
TMUX_PARENT="${TMUX_PARENT%%,*}"

tmux -L "$TMUX_PARENT" source ~/.tmux.conf.d/nested-tmux/active-row.conf

Put it in PATH and launch it when things are broken.

I'll try to come up with a better solution, eventually.

@brauliobo
Copy link
Author

@aleclearmind it seems pane-exited hook might work

@brauliobo
Copy link
Author

added set-hook -g pane-exited "run-shell '~/.tmux.conf.d/nested-tmux/restore-tmux'" to active-row.conf that made it work :)

@aleclearmind
Copy link
Owner

PR?

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