aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authortiosgz <alamica@protonmail.com>2023-10-01 15:49:21 +0000
committertiosgz <alamica@protonmail.com>2023-10-16 17:04:40 +0000
commitd73ef51c89c67ab2125387d20488a32654507e73 (patch)
treee03b08948cb59e296a82dc47cb52fcd2bfca5340 /doc
parent5690c833e9ba0ea5dc342b229ce307aa4551470b (diff)
downloadriver-d73ef51c89c67ab2125387d20488a32654507e73.tar.gz
river-d73ef51c89c67ab2125387d20488a32654507e73.tar.xz
riverctl: rule-{add,del}: reorder parameters
Previous order was (action, conditions, action argument), current is (conditions, action, action argument). The old one was an expansion of (action, conditions), which itself most likely came from the separate <action>-filter-add commands. On the other hand, the new order keeps action and its argument together and is in line with the logical flow (check conditions, apply action). On shell completions: only bash absolutely needed to be updated. fish and zsh slightly misbehave regardless of the order.
Diffstat (limited to 'doc')
-rw-r--r--doc/riverctl.1.scd4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/riverctl.1.scd b/doc/riverctl.1.scd
index e08cd44..b599a90 100644
--- a/doc/riverctl.1.scd
+++ b/doc/riverctl.1.scd
@@ -259,7 +259,7 @@ For example, _abc_ is matched by _a\*_, _\*a\*_, _\*b\*_, _\*c_, _abc_, and
_\*_ but not matched by _\*a_, _b\*_, _\*b_, _c\*_, or _ab_. Note that _\*_
matches everything while _\*\*_ and the empty string are invalid.
-*rule-add* _action_ [*-app-id* _glob_|*-title* _glob_] [_argument_]
+*rule-add* [*-app-id* _glob_|*-title* _glob_] _action_ [_argument_]
Add a rule that applies an _action_ to views with *app-id* and *title*
matched by the respective _glob_. Omitting *-app-id* or *-title*
is equivalent to passing *-app-id* _\*_ or *-title* _\*_.
@@ -301,7 +301,7 @@ matches everything while _\*\*_ and the empty string are invalid.
wishes of the client and may start the view floating based on simple
heuristics intended to catch popup-like views.
-*rule-del* _action_ [*-app-id* _glob_|*-title* _glob_]
+*rule-del* [*-app-id* _glob_|*-title* _glob_] _action_
Delete a rule created using *rule-add* with the given arguments.
*list-rules* *float*|*ssd*|*tag*