Skip to content

Commit

Permalink
fix: actually bind kele-get-mode keybindings (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinnovation authored Jun 3, 2024
1 parent 96467b8 commit 3582efa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/references/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ versioning][semver].
resource name is used, e.g. "Get a single pods" instead of "Get a single pod"
- Fixed a bug where keybinding explanation "blurbs" in `kele-get` buffers don't
properly show the keybinding in clickable form
- Fixed a bug where keybindings in `kele-get-mode` are not actually bound

### Changed

Expand Down
8 changes: 5 additions & 3 deletions kele.el
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,8 @@ show the requested Kubernetes object manifest.
:keymap `((,(kbd "q") . quit-window)
(,(kbd "Q") . kele--quit-and-kill)
(,(kbd "g") . kele-refetch))
(read-only-mode 1))
(when kele-get-mode
(read-only-mode 1)))

(cl-defstruct (kele--list-entry-id
(:constructor kele--list-entry-id-create)
Expand Down Expand Up @@ -1245,9 +1246,10 @@ context and namespace in its name."
:namespace (kele--resource-container-namespace object)))
(put 'kele--current-resource-buffer-context 'permanent-local t))

(kele-get-mode 1)
(when kele-yaml-highlighting-mode
(funcall kele-yaml-highlighting-mode)))
(funcall kele-yaml-highlighting-mode))

(kele-get-mode 1))
(select-window (display-buffer buf))))

(defun kele--prune (alist &rest keys)
Expand Down

0 comments on commit 3582efa

Please sign in to comment.