[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/popper c96915cb77 043/102: Merge commit 'b120c68' into
From: |
ELPA Syncer |
Subject: |
[elpa] externals/popper c96915cb77 043/102: Merge commit 'b120c68' into feature |
Date: |
Fri, 8 Sep 2023 15:58:52 -0400 (EDT) |
branch: externals/popper
commit c96915cb7711c36abcca2d38837cc727f83d66b2
Merge: 598571f025 b120c6836c
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Merge commit 'b120c68' into feature
---
popper.el | 37 ++++++++++++++++++++++++++++++++-----
1 file changed, 32 insertions(+), 5 deletions(-)
diff --git a/popper.el b/popper.el
index c2d97c345d..6acb863b8b 100644
--- a/popper.el
+++ b/popper.el
@@ -163,6 +163,30 @@ Built-in choices include
(const :tag "Group by directory" popper-group-by-directory)
(function :tag "Custom function")))
+(defcustom popper-window-height #'popper--fit-window-height
+ "Specify the height of the popup window.
+
+This can be a number representing the height in chars or a
+function that optionally takes one argument (the popup window)
+and returns the height in chars. This option is ignored when
+`popper-display-control' is set to nil.
+
+Examples:
+
+;; Popup windows are always 20 chars tall
+20
+
+;; The default, scale window height with buffer size up to 33% of
+the frame height.
+(lambda (win)
+ (fit-window-to-buffer
+ win
+ (floor (frame-height) 3)))
+"
+ :group 'popper
+ :type '(choice (integer :tag "Height in chars")
+ (function :tag "Height function")))
+
(defvar popper-reference-names nil
"List of buffer names whose windows are treated as popups.")
@@ -186,14 +210,17 @@ grouped by the predicate `popper-group-function'.")
'raised : This is a POPUP buffer raised to regular status by the user.
'user-popup: This is a regular buffer lowered to popup status by the user.")
+(defun popper--fit-window-height (win)
+ "Determine the popper window height by fitting it to the buffer's content."
+ (fit-window-to-buffer
+ win
+ (floor (frame-height) 3)))
+
(defun popper-select-popup-at-bottom (buffer &optional _alist)
"Display and switch to popup-buffer BUFFER at the bottom of the screen."
(let ((window (display-buffer-in-side-window
buffer
- '((window-height . (lambda (win)
- (fit-window-to-buffer
- win
- (floor (frame-height) 3))))
+ '((window-height . popper--fit-window-height)
(side . bottom)
(slot . 1)))))
(select-window window)))
@@ -513,7 +540,7 @@ If BUFFER is not specified act on the current buffer
instead."
`popper-suppress-buffers' list. This should run after
`popper-update-popups' in `window-configuration-change-hook'."
-
+;;(popper-find-popups ())
)
- [elpa] externals/popper 238dae1e46 025/102: Removed redundant info from documentation, (continued)
- [elpa] externals/popper 238dae1e46 025/102: Removed redundant info from documentation, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 500d1d477c 021/102: Fixed duplication bug, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 03dc41c315 019/102: More robust minor mode definition, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 1a059a5973 009/102: Reduced surface area of package, ELPA Syncer, 2023/09/08
- [elpa] externals/popper a27500408c 023/102: Enhancements, see details, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 3584603390 013/102: Setting up project awareness, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 9eb1a8cbd8 006/102: Merge pull request #1 from syohex/fix-minimum-version, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 35e266d984 031/102: Add support for fullscreen popups, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 598571f025 041/102: Started work on buffer-hiding feature, ELPA Syncer, 2023/09/08
- [elpa] externals/popper b120c6836c 042/102: extract window height determining function, ELPA Syncer, 2023/09/08
- [elpa] externals/popper c96915cb77 043/102: Merge commit 'b120c68' into feature,
ELPA Syncer <=
- [elpa] externals/popper cd975ac5b8 047/102: Updated README with new features, popups by predicate, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 1312c0f0f6 053/102: Added video demo of buffer hiding, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 851d838821 065/102: Extracted popper-echo into a separate library, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 7afd502b3b 068/102: Fixed popper-echo display when the group is a symbol, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 667dcdd063 069/102: Added badge, ELPA Syncer, 2023/09/08
- [elpa] externals/popper 4d58a6dbba 076/102: Handle unbound dispatch keys in popper-echo, ELPA Syncer, 2023/09/08
- [elpa] externals/popper d5ab9b2c41 077/102: Popup without selecting (#17), ELPA Syncer, 2023/09/08
- [elpa] externals/popper a93ff38ab6 098/102: popper: Assign copyright to FSF, ELPA Syncer, 2023/09/08
- [elpa] externals/popper fd39948875 024/102: Removed redundant info from documentation, ELPA Syncer, 2023/09/08
- [elpa] externals/popper b32abcba49 030/102: Fixed popup display of newly created popup buffers, ELPA Syncer, 2023/09/08