-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I've got this code in my Nyxt config:
(define-class unicode-source (prompter:source)
((prompter:name "Unicode character")
(prompter:filter-preprocessor #'prompter:filter-exact-matches)
(prompter:constructor (loop for i from 0
while (ignore-errors (code-char i))
collect (code-char i)))))
(defmethod prompter:object-attributes ((char character) (source unicode-source))
`(("Character" ,(if (graphic-char-p char)
(princ-to-string char)
(format nil "~s" char)))
("Name" ,(char-name char))
("Code" ,(format nil "~D/~:*~X" (char-code char)))))
(define-command-global insert-unicode (&key (character (prompt :prompt "Character to insert"
:sources 'unicode-source)))
"Insert the chosen Unicode character."
(ffi-buffer-paste (string character)))
When running the command, I usualy wait some 3-7 seconds for it to load, and the scrolling/narrowing is terribly laggy. Would be nice to optimize something on the Prompter side to make it work :)
Metadata
Metadata
Assignees
Labels
No labels