[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dired-preview a3dd67d46f 59/67: Refine dired-preview-ge
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dired-preview a3dd67d46f 59/67: Refine dired-preview-get-window-size |
Date: |
Sat, 8 Jul 2023 15:57:55 -0400 (EDT) |
branch: externals/dired-preview
commit a3dd67d46f30fa84bf0af6e74aa5c172be29f80e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Refine dired-preview-get-window-size
Thanks to Bruno Boal[1] for testing this with me. It was done in a
private channel and the information is shared with permission.
[1] <https://git.sr.ht/~bboal>
---
dired-preview.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dired-preview.el b/dired-preview.el
index 656fe7a7a7..4ca4efd163 100644
--- a/dired-preview.el
+++ b/dired-preview.el
@@ -217,7 +217,10 @@ DIMENSION is either a `:width' or `:height' keyword. It is
checked against `split-width-threshold' or
`split-height-threshold'"
(pcase dimension
- (:width fill-column)
+ (:width (if-let ((window-width (floor (window-total-width) 2))
+ ((> window-width fill-column)))
+ window-width
+ fill-column))
(:height (floor (window-height) 2))))
(defun dired-preview-display-action-side ()
- [elpa] externals/dired-preview 8c1c73716e 37/67: Tighten the event loop to avoid inconsistencies, (continued)
- [elpa] externals/dired-preview 8c1c73716e 37/67: Tighten the event loop to avoid inconsistencies, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 18b607fc48 40/67: Simplify dired-preview-return-window-size, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 86e11c105b 41/67: Make dired-preview-display-file delete windows eagerly, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview ca176e11e4 36/67: Simplify dired-preview--run-mode-hooks, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview b3ef9a2595 43/67: Define predicate function to check for window parameter, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 11bb038063 47/67: Do not try to delete selected preview window, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 077f24db3c 45/67: Tweak how window size is calculated, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview f52ed4774c 48/67: Remove 'dedicated' parameter from selected window, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 29829a63c8 56/67: Refactor how parameters are set, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 8d19b43469 66/67: Fix typos, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview a3dd67d46f 59/67: Refine dired-preview-get-window-size,
ELPA Syncer <=
- [elpa] externals/dired-preview 33a27a68dc 64/67: Add README.org, which GNU ELPA converts into the Info manual, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 959299b18a 39/67: Add FIXME for dired-preview-return-window-size, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 0dceaef04d 35/67: Use a function to return the display-buffer action, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview d8ba2d0884 11/67: Simplify value of dired-preview-ignored-extensions-regexp, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 6bdcc34f68 52/67: Use "below" instead of "bottom" for direction, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 22f44d083c 10/67: Clear previewed buffers after they are killed, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 91fc74d122 49/67: Stop using a side window for previews, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 24bf5bce79 50/67: Add FIXME for dired-preview-display-action-alist-dwim, ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 53ebf5d655 51/67: Change how window size is determined (fix 24bf5bc), ELPA Syncer, 2023/07/08
- [elpa] externals/dired-preview 0fa9aab1df 53/67: Add FIXME for how/why window parameters are unset, ELPA Syncer, 2023/07/08