mirror of https://codeberg.org/cage/tinmop/
- removed link prefix if link line starts with an emoji.
This commit is contained in:
parent
0972cc3ed0
commit
2015066c61
|
@ -4746,5 +4746,10 @@
|
|||
(first (or (emoji-zwj-sequences-p codepoints-chars)
|
||||
(emoji-sequences-p codepoints-chars))))
|
||||
|
||||
(defun starting-emoji (codepoints-chars)
|
||||
(emojip codepoints-chars))
|
||||
(defgeneric starting-emoji (object))
|
||||
|
||||
(defmethod starting-emoji ((object list))
|
||||
(emojip object))
|
||||
|
||||
(defmethod starting-emoji ((object string))
|
||||
(emojip (coerce object 'list)))
|
||||
|
|
|
@ -492,7 +492,9 @@
|
|||
text)))
|
||||
(linkify (link-name link-value)
|
||||
(if (gemini-link-iri-p link-value)
|
||||
(format nil "~a~a~%" (link-prefix-gemini theme) link-name)
|
||||
(if (text-utils:starting-emoji link-name)
|
||||
(format nil "~a~%" link-name)
|
||||
(format nil "~a~a~%" (link-prefix-gemini theme) link-name))
|
||||
(format nil "~a~a~%" (link-prefix-other theme) link-name)))
|
||||
(fit-quote-lines (line win-width)
|
||||
(let* ((words (split-words line))
|
||||
|
|
Loading…
Reference in New Issue