Function: eca-table--action-bar-string

eca-table--action-bar-string is a natively compiled function defined in eca-table.el.

Signature

(eca-table--action-bar-string TRUNCATED-P)

Documentation

Build the action bar before-string.

TRUNCATED-P indicates the current display mode.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-table.el
(defun eca-table--action-bar-string (truncated-p)
  "Build the action bar before-string.
TRUNCATED-P indicates the current display mode."
  (let* ((mode-label (if truncated-p "scrollable" "wrapped"))
         (toggle-label (if truncated-p "wrap" "scroll"))
         (label (concat
                 (propertize "Table: " 'face 'eca-table-action-bar-face)
                 (propertize (concat "(" mode-label ")  ") 'face 'eca-table-action-key-face)
                 (if (fboundp 'rmc--add-key-description)
                     (cdr (funcall 'rmc--add-key-description (list ?w toggle-label)))
                   (concat "[w] " toggle-label))
                 "  "
                 (eca-table--button "[o] open" #'eca-table-open
                                    "mouse-1: open in its own buffer"))))
    (concat label "\n")))