command.spec: Put cmd_border stuff together (#5266)

This commit is contained in:
Orestis Floros 2022-11-13 16:22:41 +01:00 committed by GitHub
parent 029cb8af19
commit a1e4b44955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,6 +114,12 @@ state BORDER:
'1pixel' '1pixel'
-> call cmd_border("pixel", 1) -> call cmd_border("pixel", 1)
state BORDER_WIDTH:
end
-> call cmd_border($border_style, -1)
border_width = number
-> call cmd_border($border_style, &border_width)
# gaps inner|outer|horizontal|vertical|top|right|bottom|left [current] [set|plus|minus|toggle] <px> # gaps inner|outer|horizontal|vertical|top|right|bottom|left [current] [set|plus|minus|toggle] <px>
state GAPS: state GAPS:
type = 'inner', 'outer', 'horizontal', 'vertical', 'top', 'right', 'bottom', 'left' type = 'inner', 'outer', 'horizontal', 'vertical', 'top', 'right', 'bottom', 'left'
@ -137,12 +143,6 @@ state GAPS_END:
end end
-> call cmd_gaps($type, $scope, $mode, $value) -> call cmd_gaps($type, $scope, $mode, $value)
state BORDER_WIDTH:
end
-> call cmd_border($border_style, -1)
border_width = number
-> call cmd_border($border_style, &border_width)
# layout default|stacked|stacking|tabbed|splitv|splith # layout default|stacked|stacking|tabbed|splitv|splith
# layout toggle [split|all] # layout toggle [split|all]
state LAYOUT: state LAYOUT: