Skip to content

Commit

Permalink
adjust column widths by label name length
Browse files Browse the repository at this point in the history
  • Loading branch information
jinnovation committed Jun 9, 2024
1 parent bb645ea commit 5aa8557
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kele.el
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,9 @@ If NAMESPACE is nil, displays resources for all namespaces."
(:name "GVK" :width 10 :align left)
(:name "Owner(s)" :width 20 :align left)
(:name "Created" :width 30 :align left))
(map-keys (alist-get (intern (oref gvk kind)) kele--list-columns)))))
(mapcar (lambda (key)
`(:name ,key :width ,(length key) :align left))
(map-keys (alist-get (intern (oref gvk kind)) kele--list-columns))))))
(make-vtable
:insert nil
:use-header-line nil
Expand Down

0 comments on commit 5aa8557

Please sign in to comment.