mirror of https://codeberg.org/cage/tinmop/
- [TUI] added new command: 'open-message-link-perform-fediverse-searching '.
This commit is contained in:
parent
36a796f76c
commit
7db93c5ea3
|
@ -690,6 +690,8 @@
|
||||||
|
|
||||||
(define-key "C-J" #'open-message-link-perform-opening *open-message-link-keymap*)
|
(define-key "C-J" #'open-message-link-perform-opening *open-message-link-keymap*)
|
||||||
|
|
||||||
|
(define-key "C-s" #'open-message-link-perform-fediverse-searching *open-message-link-keymap*)
|
||||||
|
|
||||||
(defun copy-from-message-link-to-clipboard ()
|
(defun copy-from-message-link-to-clipboard ()
|
||||||
"Copy the selected link to clipboard"
|
"Copy the selected link to clipboard"
|
||||||
(copy-link-to-clipboard specials:*open-message-link-window*))
|
(copy-link-to-clipboard specials:*open-message-link-window*))
|
||||||
|
|
|
@ -3058,6 +3058,7 @@
|
||||||
:open-message-link-go-up
|
:open-message-link-go-up
|
||||||
:open-message-link-go-down
|
:open-message-link-go-down
|
||||||
:open-message-link-perform-opening
|
:open-message-link-perform-opening
|
||||||
|
:open-message-link-perform-fediverse-searching
|
||||||
:open-message-link-open-enqueue
|
:open-message-link-open-enqueue
|
||||||
:open-next-visible-link
|
:open-next-visible-link
|
||||||
:open-previous-link
|
:open-previous-link
|
||||||
|
|
|
@ -1749,6 +1749,13 @@ gemini document."
|
||||||
(defun open-message-link-perform-opening ()
|
(defun open-message-link-perform-opening ()
|
||||||
(%open-message-link-perform-opening nil))
|
(%open-message-link-perform-opening nil))
|
||||||
|
|
||||||
|
(defun open-message-link-perform-fediverse-searching ()
|
||||||
|
"Search the fediverse for the selected address"
|
||||||
|
(when-let* ((selected-line (line-oriented-window:selected-row *open-message-link-window*))
|
||||||
|
(url (line-oriented-window:normal-text selected-line)))
|
||||||
|
(push-event (make-instance 'program-events:fediverse-query-event
|
||||||
|
:payload url))))
|
||||||
|
|
||||||
(defun open-message-link-open-enqueue ()
|
(defun open-message-link-open-enqueue ()
|
||||||
"Open the url and keep the data stream in background
|
"Open the url and keep the data stream in background
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue