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

CMD+K Issue with vim-tmux-navigator Plugin #386

Open
aharoJ opened this issue Apr 27, 2024 · 1 comment
Open

CMD+K Issue with vim-tmux-navigator Plugin #386

aharoJ opened this issue Apr 27, 2024 · 1 comment

Comments

@aharoJ
Copy link

aharoJ commented Apr 27, 2024

CMD+K Issue with vim-tmux-navigator Plugin

Issue

When using the vim-tmux-navigator plugin, the CMD+K keyboard shortcut, which is typically used to clear the terminal screen, stops working. This issue seems to arise after installing the plugin.

Expected Behavior

Normally, pressing CMD+K in the terminal clears the visible screen content, providing a clean slate. This is a built-in shortcut in many terminal emulators, including Alacritty, iTerm2, and Terminal.app on macOS.

Actual Behavior

After installing the vim-tmux-navigator plugin, the CMD+K shortcut does not clear the terminal as expected. Instead, there is no response, and the screen content remains unchanged.

Steps to Reproduce

  1. Open a tmux session using Alacritty or another terminal emulator.
  2. Press CMD+K to clear the screen — it works as expected.
  3. Install the vim-tmux-navigator plugin following the provided installation instructions.
  4. Reload tmux configuration or start a new tmux session.
  5. Press CMD+K again and observe that the screen is not cleared.
@christoomey
Copy link
Owner

I'm surprised to hear this as the plugin shouldn't impact Cmd+K (only Ctrl+k). Can you confirm that this works in a bare tmux session (without the plugin configured), and likewise in your terminal without tmux active?

Ultimately I'm guessing Alacritty is mapping Cmd+K to something more familiar to the underlying shell, but not sure about the specifics. As a note, I use Ctrl-l to clear the screen (just scrolls the previous lines off the screen, but that's all I care about), and use this configuration to enable Ctrl-l when using this plugin.

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