For further details, see the Kubed manual:
[[https://eshelyaron.com/sweep.html][https://eshelyaron.com/kubed.html]].
+* Version 0.4.2 in development
+
+** New user option 'kubed-list-mode-line-format'
+
+This user option lets you customize the indicator that Kubed shows in
+the mode line of resource table buffers when update is in progress.
+
* Version 0.4.1 on 2024-09-23
** New command and transient menu for scaling deployments
(when namespace (list "-n" namespace))
(when context (list "--context" context))))))
+(defcustom kubed-list-mode-line-format
+ '(:eval (cond
+ ((process-live-p
+ (alist-get 'process
+ (kubed--alist kubed-list-type
+ kubed-list-context
+ kubed-list-namespace)))
+ (propertize "[...]" 'help-echo "Updating..."))
+ (kubed-list-filter
+ (propertize
+ (concat "[" (mapconcat #'prin1-to-string kubed-list-filter " ") "]")
+ 'help-echo "Current filter"))))
+ "Mode line construct for indicating status of Kubernetes resources list."
+ :type 'sexp
+ :risky t)
+
;;;###autoload
(defmacro kubed-define-resource (resource &optional properties &rest commands)
"Define Kubernetes RESOURCE with associated PROPERTIES and COMMANDS.
menu)
(define-derived-mode ,mod-name kubed-list-mode
- (list ,(format "Kubernetes %ss" (capitalize (symbol-name resource)))
- (list '(:eval (if (process-live-p
- (alist-get 'process
- (kubed--alist kubed-list-type
- kubed-list-context
- kubed-list-namespace)))
- (propertize "[...]" 'help-echo "Updating...")
- (when kubed-list-filter
- (propertize
- (concat "[" (mapconcat #'prin1-to-string kubed-list-filter " ") "]")
- 'help-echo "Current filter"))))))
+ '(,(format "Kubernetes %ss" (capitalize (symbol-name resource)))
+ kubed-list-mode-line-format)
,(format "Major mode for listing Kubernetes %S." plrl-var)
:interactive nil
(setq kubed-list-filter-history-variable
fetching updated data from Kubernetes. You can still invoke
@code{revert-buffer} with @kbd{C-x x g} or @kbd{M-x}, if you need it.
+@vindex kubed-list-mode-line-format
+Whenever Kubed is fetching data from Kubernetes to update a resources
+list buffer, the mode line of that list buffer shows the @samp{[...]}
+indicator. You can set user option @code{kubed-list-mode-line-format}
+to customize this indicator.
+
@menu
* List Filter::
@end menu