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.
Using tmux full screen is awesome, but if you got a lot of widgets and then narrow the terminal it's cut off and ugly real quick.
This PR adds a widget that checks the tmux windows width and switches the list of active widgets to an alternate one so that the narrow space is filled by only the most important widgets.
This also adds the ability to use the @dracula-narrow-mode variable in other widgets to dynamically adjust the amount of content displayed.
from the docs:
This widget allows the user to switch to an alternate list of widgets when the terminal becomes narrow.
Switching only works if the widget is added to
set -g @dracula-plugins "your-plugins-here".to set what widgets should be shown in narrow mode, set the following variable. make sure to include the compact-alt widget as you won't be able to switch out of narrow mode otherwise.
to determine when to switch to narrow mode, set the following variable.
any value below this threshold is considered narrow.
set -g @dracula-compact-min-width 140the compact-alt widget needs to reload your tmux config to switch from wide to narrow and back.
therefore, you need to make sure to set the right path to your config file.
if you want to see your window with and whether narrow mode is active, set the following, which is false per default.
this widget maintains a global variable informing about whether narrow mode is active.
that variable should never be touched by the user and could potentially be used by other widgets/ plugins.