You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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)))))
(defmethodprompter:object-attributes ((charcharacter) (source unicode-source))
`(("Character",(if (graphic-char-pchar)
(princ-to-stringchar)
(formatnil"~s"char)))
("Name",(char-namechar))
("Code",(formatnil"~D/~:*~X" (char-codechar)))))
(define-command-global insert-unicode (&key (character (prompt :prompt"Character to insert":sources'unicode-source)))
"Insert the chosen Unicode character."
(ffi-buffer-paste (stringcharacter)))
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 :)
The text was updated successfully, but these errors were encountered:
I've got this code in my Nyxt config:
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 :)
The text was updated successfully, but these errors were encountered: