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

Allow Ctrl-b to work in nested tmux #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ccaominh
Copy link

When starting a nested tmux, do not revert the tmux prefix in the parent
tmux to the default (C-b) as it intercepts Ctrl-b from the nested tmux.
Instead, bind the tmux prefix to C-F12, which is unlikely to be used and
parallels the M-F12 binding used for active handler.

For example, to reproduce the problem:

  1. Start tmux
  2. Start vim in paraent tmux
    • Ctrl-f works to go forward a page
    • Ctrl-b works to go back a page
  3. Create nested tmux (C-a C-s)
  4. Start vim in nested tmux
    • Ctrl-f works to go forward a page
    • Ctrl-b does not work to go back a page

When starting a nested tmux, do not revert the tmux prefix in the parent
tmux to the default (C-b) as it intercepts Ctrl-b from the nested tmux.
Instead, bind the tmux prefix to C-F12, which is unlikely to be used and
parallels the M-F12 binding used for active handler.

For example, to reproduce the problem:

1) Start tmux
2) Start vim in paraent tmux
   - Ctrl-f works to go forward a page
   - Ctrl-b works to go back a page
2) Create nested tmux (C-a C-s)
3) Start vim in nested tmux
   - Ctrl-f works to go forward a page
   - Ctrl-b does not work to go back a page
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.

1 participant