[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe b92aaa1 046/195: Merge pull request #13 fr
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe b92aaa1 046/195: Merge pull request #13 from samrayleung/feature-add-variable |
Date: |
Sat, 3 Oct 2020 07:11:42 -0400 (EDT) |
branch: externals/ivy-posframe
commit b92aaa1c4695e2c6012cdbc1469b89e8c0dac4c2
Merge: ff2578a 60e1f99
Author: tumashu <tumashu@163.com>
Commit: GitHub <noreply@github.com>
Merge pull request #13 from samrayleung/feature-add-variable
add variable to customize ivy-posframe style
---
ivy-posframe.el | 27 ++++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 6b2ec86..7f49589 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -1,5 +1,6 @@
;;; ivy-posframe.el --- Using posframe to show Ivy -*- lexical-binding: t -*-
+
;; Copyright (C) 2017-2018 Free Software Foundation, Inc.
;; Author: Feng Shu
@@ -116,6 +117,25 @@
When nil, Using current frame's font as fallback."
:group 'ivy-posframe
:type 'string)
+(defcustom ivy-posframe-width nil
+ "The width of ivy-posframe."
+ :group 'ivy-posframe
+ :type 'number)
+
+(defcustom ivy-posframe-height nil
+ "The height of ivy-posframe."
+ :group 'ivy-posframe
+ :type 'number)
+
+(defcustom ivy-posframe-min-width nil
+ "The width of ivy-min-posframe."
+ :group 'ivy-posframe
+ :type 'number)
+
+(defcustom ivy-posframe-min-height nil
+ "The height of ivy-min-posframe."
+ :group 'ivy-posframe
+ :type 'number)
(defcustom ivy-posframe-border-width 0
"The border width used by ivy-posframe.
@@ -168,9 +188,10 @@ This variable is useful for `ivy-posframe-read-action' .")
:poshandler poshandler
:background-color (face-attribute 'ivy-posframe :background)
:foreground-color (face-attribute 'ivy-posframe :foreground)
- :height ivy-height
- :min-height 10
- :min-width 50
+ :height (or ivy-posframe-height ivy-height)
+ :width (or ivy-posframe-width (/ (window-width) 2))
+ :min-height (or ivy-posframe-min-height 10)
+ :min-width (or ivy-posframe-min-width 50)
:internal-border-width ivy-posframe-border-width
:override-parameters ivy-posframe-parameters))))
- [elpa] externals/ivy-posframe 7e871bd 022/195: Fix type: buttom -> bottom, (continued)
- [elpa] externals/ivy-posframe 7e871bd 022/195: Fix type: buttom -> bottom, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 823d3db 023/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0f159d5 025/195: Add frame-bottom-window-center style, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe e1624e7 027/195: ivy-posframe-display: style -> style-or-poshandler, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 5312e07 031/195: Add ivy-posframe-parameters, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8f62984 033/195: Add ivy-posframe-read-action and ivy-posframe-dispatching-done, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 26e3a64 034/195: ivy-posframe: add ivy-posframe-avy, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0989e42 039/195: Show cursor's position, fix #9, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b37e713 041/195: Merge pull request #10 from drrlvn/patch-1, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 15d9a9e 043/195: Revert "Set ivy-posframe-cursor as mulitcursor", Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b92aaa1 046/195: Merge pull request #13 from samrayleung/feature-add-variable,
Feng Shu <=
- [elpa] externals/ivy-posframe 8be3311 047/195: ivy-posframe do not support mouse click, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 3d98dbd 048/195: Add ivy-posframe-hide-minibuffer feature, fix #12, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 7544bb6 049/195: Implement ivy-posframe-avy, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b217e00 051/195: Use remaps for all keybindings, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9982c6d 052/195: Merge pull request #17 from noctuid/ivy-avy, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 187d14b 053/195: ivy-posframe.el (ivy-posframe--display): Simplify, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 7ea96ce 055/195: Merge pull request #19 from abo-abo/master, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 52c8209 057/195: Merge pull request #20 from tumashu/revert-19-master, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 19f1382 059/195: update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 05432ef 063/195: fallback width = frame-width * 0.618, Feng Shu, 2020/10/03