Skip to content

adv_windowlist: add /awl visible toggle to show/hide the whole list - #916

Open
p145085 wants to merge 1 commit into
irssi:masterfrom
p145085:awl-visible-toggle
Open

p145085 wants to merge 1 commit into
irssi:masterfrom
p145085:awl-visible-toggle

Conversation

@p145085

@p145085 p145085 commented Aug 23, 2026

Copy link
Copy Markdown

What

Adds a way to show or hide the entire adv_windowlist display at once — useful to bind to a key.

  • New setting awl_visible <ON|OFF> (default ON).
  • New command /awl visible [show|hide] — no argument toggles; show/on and hide/off force a state.

Example binding:

/bind meta-w command awl visible

How

When awl_visible is OFF, remake() returns early with empty output. That lets the existing code path do the teardown for free: syncLines() removes every awl_* status bar it created (respecting awl_all_disable), and in viewer mode syncViewer() 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 %S cache like the other options), so flipping it emits setup changed and redraws automatically, and it persists across /script load and restarts. /set awl_visible off works identically to the command.

Notes

  • Documented under the settings and commands sections of the header comment.
  • perl -c passes.
  • Left $VERSION untouched since the trailing hash marker looks maintainer-generated — happy to bump it if you'd prefer.

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

No deployments
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.

1 participant