Skip to content

Commit

Permalink
Remove keybinding for deleting empty tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kosorin committed Oct 5, 2024
1 parent c9cf80a commit 835f4a8
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions rice/bindings/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,27 +268,6 @@ local global_bindings = {
end,
},

binding.new {
modifiers = { mod.alt, mod.super },
triggers = {
{ trigger = "/" },
},
path = "Tag",
description = "Delete empty tags (except the first tag)",
on_press = function(trigger)
local screen = awful.screen.focused()
if not screen then
return
end
for i, tag in ipairs(screen.tags) do
if i > 1 then
-- tag:delete() is safe - it deletes a tag only if it's empty
tag:delete()
end
end
end,
},

binding.new {
modifiers = { mod.super },
triggers = "Escape",
Expand Down

0 comments on commit 835f4a8

Please sign in to comment.