Skip to content

Conversation

@francescoVaglienti
Copy link
Contributor

The current tmux-navigator plugin doesn't handle terminal mode (term) navigation seamlessly. When using terminal splits in Vim alongside tmux panes, the navigation breaks down. This functionality had been left out because it collided with Vim FZF

Solution
Added terminal mode support with FZF-awareness:

New terminal mode mappings that integrate with existing tmux navigation
Added IsFZF() function to detect when we're in FZF
Used mappings to conditionally pass through controls to FZF when appropriate

@francescoVaglienti
Copy link
Contributor Author

I also checked up on #172 to make sure that nothing would actually break.

When vim-FZF is detected vim-tmux-navigator behavious is stopped and keys are instead passed straight to vim-FZF, you need to then exit vim-FZF to go back to business as usual.

@francescoVaglienti francescoVaglienti marked this pull request as draft February 21, 2025 15:12
@francescoVaglienti francescoVaglienti changed the title Add terminal mode navigation support with FZF compatibility Add terminal mode navigation support with FZF compatibility fix for issue #430 Feb 21, 2025
@francescoVaglienti francescoVaglienti marked this pull request as ready for review February 21, 2025 15:13
@christoomey christoomey merged commit 05fa2b1 into christoomey:master Feb 23, 2025
@christoomey
Copy link
Owner

Thanks for the detailed summary and update here, @francescoVaglienti. 👍

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