summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-02 05:41:38 +0300
committerThanos Apollo <[email protected]>2023-10-02 05:41:38 +0300
commit1326879e8bcb58344ac74f1a83d0d410a95a30de (patch)
tree225c43fff2a829dda1ad1df82fdfd28f04910cc9
parent0ce1cfae7aebd2e1c46e52aebd488c735b3ccc20 (diff)
feature: Add yeetube-browse-url
-rw-r--r--yeetube.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/yeetube.el b/yeetube.el
index b918936..f0e1375 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -190,6 +190,11 @@ WHERE indicates where in the buffer the update should happen."
(yeetube-get-content)
(yeetube-buffer-create query yeetube-content 'yeetube-mode)))
+(defun yeetube-browse-url ()
+ "Open URL in browser."
+ (interactive)
+ (browse-url (yeetube-get-url)))
+
(defun yeetube-get-item (query)
"Get item from youtube results for QUERY.