-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtui-inspect.el
More file actions
24 lines (19 loc) · 776 Bytes
/
Copy pathtui-inspect.el
File metadata and controls
24 lines (19 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;; tui-inspect.el --- Tools for inspecting tui content -*- lexical-binding: t; -*-
;;; Commentary:
;;
(require 'dash)
(require 'tui-components)
(defun tui-describe-element (element)
"Show information about ELEMENT."
(interactive (list (tui-read-element-at-point)))
(list
(tui-heading (tui-node-label element))
(tui-line "instances: " "[not indexed]")))
(defun tui-element-summary-show (element)
"Render RENDER-FN-SYMBOL to a dedicated buffer and return that buffer."
(interactive (list (tui-read-element-at-point)))
(-let* ((buffer-name (format "*tui-element-summary: %s*" (cl-prin1-to-string element))))
(tui-render-with-buffer buffer-name
(tui-element-summary :element element))))
(provide 'tui-inspect)
;;; tui-inspect.el ends here