Function: cider-selector
cider-selector is an autoloaded, interactive and byte-compiled
function defined in cider-selector.el.
Signature
(cider-selector &optional OTHER-WINDOW)
Documentation
Select a new buffer by type, indicated by a single character.
The user is prompted for a single character indicating the method by
which to choose a new buffer. The ? character describes the
available methods. OTHER-WINDOW provides an optional target.
See def-cider-selector-method for defining new methods.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-selector.el
;;;###autoload
(defun cider-selector (&optional other-window)
"Select a new buffer by type, indicated by a single character.
The user is prompted for a single character indicating the method by
which to choose a new buffer. The `?' character describes the
available methods. OTHER-WINDOW provides an optional target.
See `def-cider-selector-method' for defining new methods."
(interactive)
(message "Select [%s]: "
(apply #'string (mapcar #'car cider-selector-methods)))
(let* ((cider-selector-other-window other-window)
(ch (save-window-excursion
(select-window (minibuffer-window))
(read-char)))
(method (seq-find (lambda (m) (eql ch (car m))) cider-selector-methods)))
(cond (method
(funcall (caddr method)))
(t
(message "No method for character: ?\\%c" ch)
(ding)
(sleep-for 1)
(discard-input)
(cider-selector)))))