[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe b6afaf7 129/195: generate
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe b6afaf7 129/195: generate |
Date: |
Sat, 3 Oct 2020 07:11:59 -0400 (EDT) |
branch: externals/ivy-posframe
commit b6afaf75a920977b70783f2cc56a129e6f4871d9
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
generate
---
README.md | 93 ++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 53 insertions(+), 40 deletions(-)
diff --git a/README.md b/README.md
index c80ae17..55d9787 100644
--- a/README.md
+++ b/README.md
@@ -3,23 +3,23 @@ Note: this file is auto converted from ivy-posframe.el by
[el2org](https://githu
# Table of Contents
-1. [ivy-posframe README](#orgd3c904b)
- 1. [What is ivy-posframe](#org0585c98)
- 2. [Display functions](#org33d88e8)
- 3. [How to enable ivy-posframe](#org1951a71)
- 1. [Global mode](#orga4b2102)
- 2. [Per-command mode.](#org5502e77)
- 4. [Tips](#orgaaa4442)
- 1. [How to show fringe to ivy-posframe](#org84cabb8)
- 2. [How to custom your ivy-posframe style](#orgc5ae827)
+1. [ivy-posframe README](#orgb29527d)
+ 1. [What is ivy-posframe](#org73ec970)
+ 2. [Display functions](#org7dc9307)
+ 3. [How to enable ivy-posframe](#org491e830)
+ 1. [Global mode](#org38e37cf)
+ 2. [Per-command mode.](#org89e4db4)
+ 4. [Tips](#org2af7073)
+ 1. [How to show fringe to ivy-posframe](#orgc0851d4)
+ 2. [How to custom your ivy-posframe style](#orgdab58bc)
-<a id="orgd3c904b"></a>
+<a id="orgb29527d"></a>
# ivy-posframe README
-<a id="org0585c98"></a>
+<a id="org73ec970"></a>
## What is ivy-posframe
@@ -30,7 +30,7 @@ NOTE: ivy-posframe requires Emacs 26 and do not support mouse
click.
-<a id="org33d88e8"></a>
+<a id="org7dc9307"></a>
## Display functions
@@ -46,42 +46,36 @@ click.
![img](./snapshots/ivy-posframe-display-at-point.png)
-<a id="org1951a71"></a>
+<a id="org491e830"></a>
## How to enable ivy-posframe
-<a id="orga4b2102"></a>
+<a id="org38e37cf"></a>
### Global mode
(require 'ivy-posframe)
- (setq ivy-posframe-configure-alist
- '((ivy-display-functions-alist . ((t . ivy-posframe-display)))))
- ;; (setq ivy-posframe-configure-alist
- ;; '((ivy-display-functions-alist . ((t .
ivy-posframe-display-at-frame-center)))))
- ;; (setq ivy-posframe-configure-alist
- ;; '((ivy-display-functions-alist . ((t .
ivy-posframe-display-at-window-center)))))
- ;; (setq ivy-posframe-configure-alist
- ;; '((ivy-display-functions-alist . ((t .
ivy-posframe-display-at-frame-bottom-left)))))
- ;; (setq ivy-posframe-configure-alist
- ;; '((ivy-display-functions-alist . ((t .
ivy-posframe-display-at-window-bottom-left)))))
- ;; (setq ivy-posframe-configure-alist
- ;; '((ivy-display-functions-alist . ((t .
ivy-posframe-display-at-point)))))
+ ;; display at `ivy-posframe-style'
+ (setq ivy-posframe-display-functions-alist '((t . ivy-posframe-display)))
+ ;; (setq ivy-posframe-display-functions-alist '((t .
ivy-posframe-display-at-frame-center)))
+ ;; (setq ivy-posframe-display-functions-alist '((t .
ivy-posframe-display-at-window-center)))
+ ;; (setq ivy-posframe-display-functions-alist '((t .
ivy-posframe-display-at-frame-bottom-left)))
+ ;; (setq ivy-posframe-display-functions-alist '((t .
ivy-posframe-display-at-window-bottom-left)))
(ivy-posframe-mode t)
-<a id="org5502e77"></a>
+<a id="org89e4db4"></a>
### Per-command mode.
(require 'ivy-posframe)
;; Different command can use different display function.
- (setq ivy-posframe-configure-alist
- '((ivy-display-functions-alist . ((swiper .
ivy-posframe-display-at-point)
- (complete-symbol .
ivy-posframe-display-at-point)
- (counsel-M-x .
ivy-posframe-display-at-window-bottom-left)
- (t .
ivy-posframe-display)))))
+ (setq ivy-posframe-display-functions-alist
+ '((swiper . ivy-posframe-display-at-point)
+ (complete-symbol . ivy-posframe-display-at-point)
+ (counsel-M-x . ivy-posframe-display-at-window-bottom-left)
+ (t . ivy-posframe-display)))
(ivy-posframe-mode t)
You can use ivy original display function on specify function.
@@ -90,11 +84,30 @@ of Swiper at point hides the contents of the buffer.
(require 'ivy-posframe)
;; Different command can use different display function.
- (setq ivy-posframe-configure-alist
- '((ivy-display-functions-alist . ((swiper . nil)
- (complete-symbol .
ivy-posframe-display-at-point)
- (counsel-M-x .
ivy-posframe-display-at-window-bottom-left)
- (t .
ivy-posframe-display)))))
+ (setq ivy-posframe-display-functions-alist
+ '((swiper . nil)
+ (complete-symbol . ivy-posframe-display-at-point)
+ (counsel-M-x . ivy-posframe-display-at-window-bottom-left)
+ (t . ivy-posframe-display)))
+ (ivy-posframe-mode t)
+
+You may want to change the height of ivy by a function only while
+using posframe. This is possible with the code below.
+
+The following example displays swiper on 20 lines by default for ivy,
+and displays other functions in posframe at the location specified on
+40 lines.
+
+ (require 'ivy-posframe)
+ ;; Different command can use different display function.
+ (setq ivy-posframe-height-alist '((swiper . 20)
+ (t . 40)))
+
+ (setq ivy-posframe-display-functions-alist
+ '((swiper . nil)
+ (complete-symbol . ivy-posframe-display-at-point)
+ (counsel-M-x . ivy-posframe-display-at-window-bottom-left)
+ (t . ivy-posframe-display)))
(ivy-posframe-mode t)
NOTE: Using swiper as example: swiper's display function **only**
@@ -108,12 +121,12 @@ by ivy to find display function in
\`ivy-display-functions-alist',
"C-h v this-command" is a good idea.
-<a id="orgaaa4442"></a>
+<a id="org2af7073"></a>
## Tips
-<a id="org84cabb8"></a>
+<a id="orgc0851d4"></a>
### How to show fringe to ivy-posframe
@@ -125,7 +138,7 @@ By the way, User can set **any** parameters of ivy-posframe
with
the help of \`ivy-posframe-parameters'.
-<a id="orgc5ae827"></a>
+<a id="orgdab58bc"></a>
### How to custom your ivy-posframe style
- [elpa] externals/ivy-posframe 38aff80 084/195: Add ivy-posframe-demo, (continued)
- [elpa] externals/ivy-posframe 38aff80 084/195: Add ivy-posframe-demo, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 13180ce 087/195: Merge pull request #35 from conao3/fix-minibuffer-issue, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ba1bc4f 092/195: Update prompt in dynamic collections, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 233a3ec 070/195: Fix Strange behaviour #25, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 1297ebc 078/195: Fix focus can go out of frame with multi line collections #31, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9e01129 083/195: Remove ivy-posframe-setup, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b1ecab7 096/195: Merge pull request #42 from tttuuu888/work, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0a8cb5a 101/195: fix advice function style, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 441c1bf 150/195: Fix First line disappears with the specific condition. #47, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe dddbd8b 139/195: Remove ivy-posframe-display-function-list, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b6afaf7 129/195: generate,
Feng Shu <=
- [elpa] externals/ivy-posframe 19cc919 110/195: use function-alist instead of display-functions, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ca2b6db 106/195: add disable mode code, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe e27b2b7 141/195: Remove ivy-posframe-additional-display-functions, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe b23cd5c 133/195: remove eval form, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0032ed4 130/195: define define-display-function macro instead of eval form, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 36cae42 102/195: use ivy-posframe-advice-alist to apply advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe f032c58 124/195: remove overwrite ivy variable code, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9dcdd80 121/195: add ivy--height advice, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 7567182 136/195: let ivy-posframe-enable = (ivy-posframe-mode 1), Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe df179ec 128/195: refine readme, Feng Shu, 2020/10/03