fix(cli): display command list groups in insert order

On 'doom help' or 'doom help --commands'
This commit is contained in:
Henrik Lissner 2022-06-20 23:37:21 +02:00
parent cfb533043f
commit fe850934f1
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -306,7 +306,7 @@ OPTIONS:
(let* ((doom-print-indent 0)
(commands (seq-group-by (fn!! (if grouped? (doom-cli-prop (doom-cli-get % t) :group))) commands))
(toplevel (assq nil commands))
(rest (nreverse (remove toplevel commands)))
(rest (remove toplevel commands))
(drop (if prefix (length prefix) 0))
(minwidth
(apply