bc7ce982ddcabdb7a6d446207ef4a0b78920da8b

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

style(cli): fill rows in column output in theme and plugin `list` commands

Diff

 1diff --git a/lib/cli.zsh b/lib/cli.zsh
 2index a10b0e1471aac0c35c94c15f25cb19afffd4f62c..6bdac6cf1155cb6c6dfb870cbbd7af4b56cf19be 100644
 3--- a/lib/cli.zsh
 4+++ b/lib/cli.zsh
 5@@ -405,14 +405,14 @@ function _omz::plugin::list {
 6 
 7   if (( ${#custom_plugins} )); then
 8     print -P "%U%BCustom plugins%b%u:"
 9-    print -l ${(q-)custom_plugins} | column
10+    print -l ${(q-)custom_plugins} | column -x
11   fi
12 
13   if (( ${#builtin_plugins} )); then
14     (( ${#custom_plugins} )) && echo # add a line of separation
15 
16     print -P "%U%BBuilt-in plugins%b%u:"
17-    print -l ${(q-)builtin_plugins} | column
18+    print -l ${(q-)builtin_plugins} | column -x
19   fi
20 }
21 
22@@ -631,14 +631,14 @@ function _omz::theme::list {
23 
24   if (( ${#custom_themes} )); then
25     print -P "%U%BCustom themes%b%u:"
26-    print -l ${(q-)custom_themes} | column
27+    print -l ${(q-)custom_themes} | column -x
28   fi
29 
30   if (( ${#builtin_themes} )); then
31     (( ${#custom_themes} )) && echo # add a line of separation
32 
33     print -P "%U%BBuilt-in themes%b%u:"
34-    print -l ${(q-)builtin_themes} | column
35+    print -l ${(q-)builtin_themes} | column -x
36   fi
37 }
38