aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authorDavid Edmondson <dme@dme.org>2024-01-16 14:00:34 +0000
committermartianh <martianh@noreply.codeberg.org>2024-01-26 15:40:58 +0000
commitf0137a0ad60df4ac8b78020f155e33f733493027 (patch)
tree71bd5676c5d69118aebd18c128b335863da626a4 /lisp/mastodon-toot.el
parentfa73817c225783f09e59f71d8724c62352c36776 (diff)
Add 'o' binding to open the current toot in a browser
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 6febec7..bffa20e 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -517,6 +517,11 @@ base toot."
(kill-new url)
(message "Toot URL copied to the clipboard.")))
+(defun mastodon-toot--open-toot-url ()
+ "Open URL of toot at point."
+ (interactive)
+ (browse-url (mastodon-toot--toot-url)))
+
(defun mastodon-toot--toot-url ()
"Return the URL of the base toot at point."
(let* ((toot (or (mastodon-tl--property 'base-toot)