Repository navigation
Conversation
Add an awl_visible ON/OFF setting and an /awl visible command to show or hide the entire window list at once, so it can be bound to a key. When awl_visible is OFF, remake() produces no items, which makes the existing machinery remove all the status bars awl created (or blank the viewer). The state lives in a setting, so it persists across reloads and restarts and can be driven with /set as well as the command. /awl visible with no argument toggles; "show"/"on" and "hide"/"off" force a state, e.g. /bind meta-w command awl visible Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds a way to show or hide the entire adv_windowlist display at once — useful to bind to a key.
awl_visible <ON|OFF>(defaultON)./awl visible [show|hide]— no argument toggles;show/onandhide/offforce a state.Example binding:
How
When
awl_visibleisOFF,remake()returns early with empty output. That lets the existing code path do the teardown for free:syncLines()removes everyawl_*status bar it created (respectingawl_all_disable), and in viewer modesyncViewer()sends an empty list so the viewer blanks. No new status-bar teardown logic, and nothing outside irssi is touched.The state is stored in the setting (surfaced through the
%Scache like the other options), so flipping it emitssetup changedand redraws automatically, and it persists across/script loadand restarts./set awl_visible offworks identically to the command.Notes
perl -cpasses.$VERSIONuntouched since the trailing hash marker looks maintainer-generated — happy to bump it if you'd prefer.