From cdeb94ea56fb17d60896fb6b21350857e025726a Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Wed, 14 Aug 2024 19:35:48 +0200 Subject: [PATCH] ; Use local context as default in some prompts --- kubed.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubed.el b/kubed.el index 485b1c0..d96fa81 100644 --- a/kubed.el +++ b/kubed.el @@ -2259,7 +2259,7 @@ Optional argument DEFAULT is the minibuffer default argument." (defun kubed-use-context (context) "Set current Kubernetes context to CONTEXT." (interactive - (list (kubed-read-context "Use context" (kubed-current-context)))) + (list (kubed-read-context "Use context" (kubed-local-context)))) (unless (zerop (call-process kubed-kubectl-program nil nil nil @@ -2271,7 +2271,7 @@ Optional argument DEFAULT is the minibuffer default argument." (defun kubed-rename-context (old new) "Rename Kubernetes context OLD to NEW." (interactive - (let ((old (kubed-read-context "Rename context" (kubed-current-context)))) + (let ((old (kubed-read-context "Rename context" (kubed-local-context)))) (list old (read-string (format-prompt "Rename context to" old) nil 'kubed-context-history old)))) (unless (zerop -- 2.39.2