feat: enable switching to the next and previous float terminal #368
+45
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TL;DR
Introducing of ToggleTermFloatNext/ToggleTermFloatPrev commands for the
float
terminals. Just switching to the next/previous terminal id from the list in a cycled manner.Motivation
Since I usually use
float
windows for the terminals, in my flow I'm missing the feature of "switching to the previous/next terminal".E.g. It's common for me to have 3 terminals at the same time, and switching between them with the
count
feature is not very convenient, as I have to keep in mind some kind of mapping of the terminal number to its actual state. I'd like to switch between them just by going forward/backwardAfter Neovim 0.9 release and together with this feature (#363) process of switching will become even more transparent for the user.
It's my first experience in Lua/Neovim development, so don't judge me too much, I will be happy to fix any notes and issues :)