[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 53ab5eb653 101/230: convert image action fullscreen
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 53ab5eb653 101/230: convert image action fullscreen into an option |
Date: |
Sun, 7 Jul 2024 19:00:20 -0400 (EDT) |
branch: elpa/dslide
commit 53ab5eb6537dac8e2e0918d06cac416ebaf484db
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
convert image action fullscreen into an option
the more common workflow will be to display the presentation itself full
frame
when full frame images are desired.
for the development case, starting with it disabled is a little bit less
jarring
when flipping through slides
Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
macro-slides.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/macro-slides.el b/macro-slides.el
index e07b1e4313..e507b6dd20 100644
--- a/macro-slides.el
+++ b/macro-slides.el
@@ -1458,6 +1458,10 @@ stateful-sequence class methods. METHOD-NAME is a
string."
:initform t
:initarg :include-linked
:documentation "Loads linked images. See `org-display-inline-images'.")
+ (fullscreen
+ :initform nil
+ :initarg :fullscreen
+ :documentation "Switch to full frame during display.")
(refresh
:initform nil
:initarg :refresh
@@ -1477,10 +1481,10 @@ stateful-sequence class methods. METHOD-NAME is a
string."
(cl-defmethod ms-step-forward ((obj ms-action-image))
(when-let ((link (ms-section-next obj 'link)))
(ms-push-window-config nil)
-
;; TODO success detection
(let ((org-link-frame-setup '((file . find-file)))
- (display-buffer-overriding-action '(display-buffer-full-frame)))
+ (display-buffer-overriding-action (when (oref obj fullscreen)
+ '(display-buffer-full-frame))))
(org-link-open link))
(when (eq (buffer-local-value 'major-mode (current-buffer))
@@ -1498,10 +1502,10 @@ stateful-sequence class methods. METHOD-NAME is a
string."
(cl-defmethod ms-step-backward ((obj ms-action-image))
(when-let ((link (ms-section-previous obj 'link)))
(ms-push-window-config nil)
-
;; TODO success detection
(let ((org-link-frame-setup '((file . find-file)))
- (display-buffer-overriding-action '(display-buffer-full-frame)))
+ (display-buffer-overriding-action (when (oref obj fullscreen)
+ '(display-buffer-full-frame))))
(org-link-open link))
(when (eq (buffer-local-value 'major-mode (current-buffer))
- [nongnu] elpa/dslide d365e64660 098/230: suppress animations in end method of inline child action, (continued)
- [nongnu] elpa/dslide d365e64660 098/230: suppress animations in end method of inline child action, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 645e94a4fe 085/230: line noise, removing awkward newlines, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 2a5d14dec9 091/230: run narrow hook in other paths that will narrow, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 7f47a64acf 109/230: package-name macro-slide -> dslide, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide e9e4a75354 104/230: roll progress-tracking directly into the ms-action class, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 578f5082bb 105/230: whitespace, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 25c2429ac7 096/230: centralize following logic, normalize progress indications, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 6eb2cefbca 097/230: line noise, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 648cb7247a 115/230: ms- -> dslide-, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide d74b869a12 117/230: back to feature parity with demo.org, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 53ab5eb653 101/230: convert image action fullscreen into an option,
ELPA Syncer <=
- [nongnu] elpa/dslide e0be8b31fa 112/230: renaming user commands & simplifying stateful-sequence, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 50fffb5824 124/230: babel action should not use default implementation of end, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide d0ae139d26 114/230: Version up, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide d71709fd00 118/230: custom action example from video (it works!), ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 0419d1310d 089/230: remove dead function, ms-display-base, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide a6a0d57738 110/230: init -> forward, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f07a873181 128/230: per-slide option to have no header, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide a71554c68d 121/230: partial-lines in header margins, more options, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 72ffe8494d 116/230: !some cleanup of package renaming, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 6aea1165e1 141/230: Updated demo.org, rearranged, designing into a manual of sorts, ELPA Syncer, 2024/07/07