Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion kubel.el
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ off - always assume we cannot list namespaces"
:group 'kubel
:options '('auto 'on 'off))

(defcustom kubel-same-buffer 'nil
"Use the same buffer for output."
:type 'boolean
:group 'kubel)

(defun kubel--append-to-process-buffer (str)
"Append string STR to the process buffer."
(with-current-buffer (get-buffer-create kubel--process-buffer)
Expand Down Expand Up @@ -464,7 +469,9 @@ READONLY If true buffer will be in readonly mode(view-mode)."
:file-handler t
:stderr error-buffer
:command cmd)
(pop-to-buffer buffer-name)
(if kubel-same-buffer
(pop-to-buffer-same-window buffer-name)
(pop-to-buffer buffer-name))
(if readonly
(with-current-buffer buffer-name
(view-mode)))))
Expand Down