1
0
Fork 0

- refactored clipboard utitlity function.

This commit is contained in:
cage 2022-03-04 14:36:11 +01:00
parent 826423c7d7
commit 45d74863c3
3 changed files with 6 additions and 2 deletions

View File

@ -213,3 +213,6 @@
(exit-code (sb-ext:process-exit-code process)))
(when (/= exit-code 0)
(error (format nil "File ~s extraction from ~s failed" file-entry zip-file))))))
(defun copy-to-clipboard (text)
(trivial-clipboard:text text))

View File

@ -369,7 +369,8 @@
:open-link-with-program
:open-resource-with-external-program
:unzip-file
:unzip-single-file))
:unzip-single-file
:copy-to-clipboard))
(defpackage :text-utils
(:use

View File

@ -1362,7 +1362,7 @@ This makes sense only for gemini file stream, if not this command performs the s
(when-let* ((selected-line (line-oriented-window:selected-row *open-message-link-window*))
(url (line-oriented-window:normal-text selected-line)))
(with-notify-errors
(trivial-clipboard:text url)
(os-utils:copy-to-clipboard url)
(info-message (_ "Address copied to clipboard")))))
(defun close-open-message-link-window ()