Skip to content

fix behavior when multiple tags are selected - #2

Open
shunlog wants to merge 1 commit into
notnew:masterfrom
shunlog:master
Open

fix behavior when multiple tags are selected#2
shunlog wants to merge 1 commit into
notnew:masterfrom
shunlog:master

Conversation

@shunlog

@shunlog shunlog commented Jun 22, 2024

Copy link
Copy Markdown

when multiple tags are selected, toggling the scratch off removes only the first one from its tags, so it still remains on the screen if it happened to be present in the other tags as well.

This patch makes it work as expected - all the selected tags are removed from the scratchpad's tags. To make it more consistent, maybe we should make the turn_on method to handle multiple tags as well?

BTW, I'm new to lua. How the hell is there no table.find_by_value or something? This loop stinks, but I copied the code from AwesomeWM's client:toggle_tag(t) so I assume this is the standard approach.

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