Skip to content

Commit

Permalink
feat: Add choose char
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Aug 13, 2024
1 parent 4b33acd commit e684e2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions elenv.el
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ Optional argument REP is the replacement string of non-displayable character."
(string-join (reverse results)))
""))

;;;###autoload
(defun elenv-choose-char (&rest args)
"Choose a character from the list ARGS."
(cl-some (lambda (ch)
(when (elenv-char-displayable-p ch)
ch))
args))

;;
;;; String

Expand Down

0 comments on commit e684e2a

Please sign in to comment.