Function: hydra--table
hydra--table is a byte-compiled function defined in hydra.el.
Signature
(hydra--table NAMES ROWS COLS &optional CELL-FORMATS)
Documentation
Format a format-style table from variables in NAMES.
The size of the table is ROWS times COLS.
CELL-FORMATS are format strings for each column.
If CELL-FORMATS is a string, it's used for all columns.
If CELL-FORMATS is nil, hydra-cell-format is used for all columns.
Source Code
;; Defined in ~/.emacs.d/elpa/hydra-20250316.1254/hydra.el
(defun hydra--table (names rows cols &optional cell-formats)
"Format a `format'-style table from variables in NAMES.
The size of the table is ROWS times COLS.
CELL-FORMATS are `format' strings for each column.
If CELL-FORMATS is a string, it's used for all columns.
If CELL-FORMATS is nil, `hydra-cell-format' is used for all columns."
(setq cell-formats
(cond ((null cell-formats)
(make-list cols hydra-cell-format))
((stringp cell-formats)
(make-list cols cell-formats))
(t
cell-formats)))
(hydra--vconcat
(cl-mapcar
#'hydra--cell
cell-formats
(hydra--matrix names rows cols))
(lambda (&rest x)
(mapconcat #'identity x " "))))