diff options
author | Thanos Apollo <[email protected]> | 2023-10-16 15:15:11 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-10-17 09:24:49 +0300 |
commit | 1b4a3c46643cf08cf867d632078eaff446f2dd0c (patch) | |
tree | 4244d6bbe7e8fb2eaa59a559311242bfe9c4d21b | |
parent | af7eafc4c4d9106614d998ec553013431e68e749 (diff) |
yeetube:(mode-map) Add yeetube-search & yeetube-replay
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | yeetube.el | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -11,7 +11,7 @@ displayed in a proced-like buffer. Package functionality includes: -- Search Youtube for query +- Query YouTube - Play video url *by default using mpv* - Bookmark/Save video url - Download video *using yt-dlp* @@ -30,7 +30,7 @@ ;; ;; Basic functionality includes: ;; -;; - Search Youtube for query +;; - Query YouTube ;; - Play video url by default using mpv ;; - Bookmark/Save video url ;; - Download video using yt-dlp @@ -369,6 +369,7 @@ prompt blank to keep the default name." ;; Yeetube Mode (defvar yeetube-mode-map (make-sparse-keymap)) (define-key yeetube-mode-map (kbd "RET") #'yeetube-play) +(define-key yeetube-mode-map (kbd "M-RET") #'yeetube-search) (define-key yeetube-mode-map (kbd "b") #'yeetube-browse-url) (define-key yeetube-mode-map (kbd "d") #'yeetube-download-video) (define-key yeetube-mode-map (kbd "D") #'yeetube-download-change-directory) @@ -378,6 +379,7 @@ prompt blank to keep the default name." (define-key yeetube-mode-map (kbd "s") #'yeetube-save-video) (define-key yeetube-mode-map (kbd "P") #'yeetube-play-saved-video) (define-key yeetube-mode-map (kbd "q") #'quit-window) +(define-key yeetube-mode-map (kbd "r") #'yeetube-replay) (define-derived-mode yeetube-mode special-mode "Yeetube" "Yeetube mode." |