Introduce "--add" for marking windows.
In order to keep compatibility to before allowing multiple marks on a window, we introduce a flag "--add" that must be set to put more than one mark on a window. The default, which is also available as "--replace", keeps the old behavior of overwriting a mark when setting a new one. fixes #2014
This commit is contained in:
@ -199,12 +199,14 @@ state FLOATING:
|
||||
floating = 'enable', 'disable', 'toggle'
|
||||
-> call cmd_floating($floating)
|
||||
|
||||
# mark [--toggle] <mark>
|
||||
# mark [--add|--replace] [--toggle] <mark>
|
||||
state MARK:
|
||||
mode = '--add', '--replace'
|
||||
->
|
||||
toggle = '--toggle'
|
||||
->
|
||||
mark = string
|
||||
-> call cmd_mark($mark, $toggle)
|
||||
-> call cmd_mark($mark, $mode, $toggle)
|
||||
|
||||
# unmark [mark]
|
||||
state UNMARK:
|
||||
|
Reference in New Issue
Block a user