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

Prevent control key pass-through when docker is running #326

Merged
merged 1 commit into from
Nov 13, 2022
Merged

Prevent control key pass-through when docker is running #326

merged 1 commit into from
Nov 13, 2022

Conversation

anemator
Copy link
Contributor

@anemator anemator commented Nov 8, 2022

Prior to this patch we assumed vim would always run on the host system, but docker containers have their own instances of /dev/pts/*, so if vim in say /dev/pts/N was running in tmux which was in a docker container, then we thought vim was running in /dev/pts/N on the host system which caused control keys calls to pass-through as send-keys rather than select-pane on the host system.

@anemator
Copy link
Contributor Author

anemator commented Nov 8, 2022

Fixes #311.

Copy link
Owner

@christoomey christoomey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @anemator, I appreciate the update here, but unfortunately I'm inclined to not accept as is. The vim detection logic is super complicated and frankly more brittle than I'd like so I'm super cautious about adding additional logic to it.

I would be open to an update to the troubleshooting section describing the issue and suggesting this as a fix, but I don't want to take this on in the core vim detection code unfortunately.

@anemator
Copy link
Contributor Author

No problem. Just updated my branch. Let me know if you need any more changes.

@christoomey christoomey merged commit c2dab18 into christoomey:master Nov 13, 2022
@christoomey
Copy link
Owner

Thanks, @anemator. Merged now.

@anemator anemator deleted the docker-fix branch November 14, 2022 14:35
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

Successfully merging this pull request may close these issues.

2 participants