summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-25 04:33:24 +0200
committerThanos Apollo <[email protected]>2024-02-25 04:33:24 +0200
commit913a4a8f178596995f17d48b1b43594ec0968079 (patch)
tree4fe0c1a47a260808f46bc72877eb4164e854640f
parentd563a5645febaa122a749ebbf48c3a8e25ab7121 (diff)
[Feature] yeetube-mode: Display thumbnails
-rw-r--r--yeetube.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/yeetube.el b/yeetube.el
index fa111a4..45d4035 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -605,7 +605,8 @@ image-path."
("Views" 11 yeetube--sort-views)
("Duration" 9 yeetube--sort-duration)
("Date" 13 yeetube--sort-date)
- ("Channel" 8 t)]
+ ("Channel" 10 t)
+ ("Thumbnail" 0 t)]
tabulated-list-entries
(cl-map 'list
(lambda (content)
@@ -615,13 +616,15 @@ image-path."
:view-count 'yeetube-face-view-count
:duration 'yeetube-face-duration
:date 'yeetube-face-date
- :channel 'yeetube-face-channel)))
+ :channel 'yeetube-face-channel
+ :image 'yeetube-face-thumbnail)))
(reverse yeetube-content))
tabulated-list-sort-key (cons yeetube-default-sort-column
yeetube-default-sort-ascending))
(display-line-numbers-mode 0)
(tabulated-list-init-header)
- (tabulated-list-print))
+ (tabulated-list-print)
+ (yeetube-iimage-mode-buffer yeetube-display-thumbnails))
(provide 'yeetube)
;;; yeetube.el ends here