[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-posframe aec9d8a 058/195: Update ivy-posframe READM
From: |
Feng Shu |
Subject: |
[elpa] externals/ivy-posframe aec9d8a 058/195: Update ivy-posframe README |
Date: |
Sat, 3 Oct 2020 07:11:44 -0400 (EDT) |
branch: externals/ivy-posframe
commit aec9d8a616edeb886532aaf604cae522724f8ef5
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Update ivy-posframe README
---
README.md | 110 ++++++++++++++++++++++++++++++++++----------------------
ivy-posframe.el | 71 ++++++++++++++++++++----------------
2 files changed, 108 insertions(+), 73 deletions(-)
diff --git a/README.md b/README.md
index 8d2fc87..b76e6cb 100644
--- a/README.md
+++ b/README.md
@@ -3,32 +3,34 @@ Note: this file is auto converted from ivy-posframe.el by
[el2org](https://githu
# 目录
-1. [ivy-posframe README](#orga0194dc)
- 1. [What is ivy-posframe](#org9479e4f)
- 2. [Display functions](#org77c90ff)
- 3. [How to enable ivy-posframe](#orgbdb78e5)
- 4. [Tips](#orgd370bc2)
- 1. [How to show fringe to ivy-posframe](#orgdefc2c7)
- 2. [How to custom your ivy-posframe style](#org34f3a1d)
+1. [ivy-posframe README](#org05902f8)
+ 1. [What is ivy-posframe ivy-posframe is a ivy extension, which
let](#orgb43a11b)
+ 2. [Display functions](#orgc79cbd1)
+ 3. [How to enable ivy-posframe](#org15b17c3)
+ 1. [Global mode](#orgcb1ad0f)
+ 2. [Per-command mode.](#org4aa4955)
+ 3. [Fallback mode](#org41b338c)
+ 4. [Tips](#orgba0f166)
+ 1. [How to show fringe to ivy-posframe](#orgc6476d8)
+ 2. [How to custom your ivy-posframe style](#org5b91664)
-<a id="orga0194dc"></a>
+<a id="org05902f8"></a>
# ivy-posframe README
-<a id="org9479e4f"></a>
+<a id="orgb43a11b"></a>
-## What is ivy-posframe
+## What is ivy-posframe ivy-posframe is a ivy extension, which let
-ivy-posframe is a ivy extension, which let ivy use posframe
-to show its candidate menu.
+ivy use posframe to show its candidate menu.
-NOTE: ivy-posframe requires Emacs 26 and do not support
-mouse click.
+NOTE: ivy-posframe requires Emacs 26 and do not support mouse
+click.
-<a id="org77c90ff"></a>
+<a id="orgc79cbd1"></a>
## Display functions
@@ -44,40 +46,62 @@ mouse click.
![img](./snapshots/ivy-posframe-display-at-point.gif)
-<a id="orgbdb78e5"></a>
+<a id="org15b17c3"></a>
## How to enable ivy-posframe
-1. Global mode
-
- (require 'ivy-posframe)
- (setq ivy-display-function #'ivy-posframe-display)
- ;; (setq ivy-display-function #'ivy-posframe-display-at-frame-center)
- ;; (setq ivy-display-function #'ivy-posframe-display-at-window-center)
- ;; (setq ivy-display-function
#'ivy-posframe-display-at-frame-bottom-left)
- ;; (setq ivy-display-function
#'ivy-posframe-display-at-window-bottom-left)
- ;; (setq ivy-display-function #'ivy-posframe-display-at-point)
- (ivy-posframe-enable)
-2. Per-command mode.
-
- (require 'ivy-posframe)
- ;; Different command can use different display function.
- (push '(counsel-M-x . ivy-posframe-display-at-window-bottom-left)
ivy-display-functions-alist)
- (push '(complete-symbol . ivy-posframe-display-at-point)
ivy-display-functions-alist)
- (ivy-posframe-enable)
-3. Fallback mode
-
- (require 'ivy-posframe)
- (push '(t . ivy-posframe-display) ivy-display-functions-alist)
- (ivy-posframe-enable)
-
-
-<a id="orgd370bc2"></a>
+
+<a id="orgcb1ad0f"></a>
+
+### Global mode
+
+ (require 'ivy-posframe)
+ (setq ivy-display-function #'ivy-posframe-display)
+ (setq ivy-display-function #'ivy-posframe-display-at-frame-center)
+ (setq ivy-display-function #'ivy-posframe-display-at-window-center)
+ (setq ivy-display-function #'ivy-posframe-display-at-frame-bottom-left)
+ (setq ivy-display-function #'ivy-posframe-display-at-window-bottom-left)
+ (setq ivy-display-function #'ivy-posframe-display-at-point)
+ (ivy-posframe-enable)
+
+
+<a id="org4aa4955"></a>
+
+### Per-command mode.
+
+ (require 'ivy-posframe)
+ Different command can use different display function.
+ (push '(counsel-M-x . ivy-posframe-display-at-window-bottom-left)
ivy-display-functions-alist)
+ (push '(complete-symbol . ivy-posframe-display-at-point)
ivy-display-functions-alist)
+ (push '(swiper . ivy-posframe-display-at-point)
ivy-display-functions-alist)
+ (ivy-posframe-enable)
+
+NOTE: Using swiper as example: swiper's display function **only**
+take effect when you call swiper command with global keybinding, if
+you call swiper command with 'M-x' (for example: counsel-M-x),
+counsel-M-x's display function will take effect instead of
+swiper's.
+
+The value of variable \`this-command' will be used as the search key
+by ivy to find display function in \`ivy-display-functions-alist',
+"C-h v this-command" is a good idea.
+
+
+<a id="org41b338c"></a>
+
+### Fallback mode
+
+ (require 'ivy-posframe)
+ (push '(t . ivy-posframe-display) ivy-display-functions-alist)
+ (ivy-posframe-enable)
+
+
+<a id="orgba0f166"></a>
## Tips
-<a id="orgdefc2c7"></a>
+<a id="orgc6476d8"></a>
### How to show fringe to ivy-posframe
@@ -89,7 +113,7 @@ By the way, User can set **any** parameters of ivy-posframe
with
the help of \`ivy-posframe-parameters'.
-<a id="org34f3a1d"></a>
+<a id="org5b91664"></a>
### How to custom your ivy-posframe style
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 0a323d1..4f4bf3f 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -29,12 +29,11 @@
;;; Commentary:
;; * ivy-posframe README :README:
-;; ** What is ivy-posframe
-;; ivy-posframe is a ivy extension, which let ivy use posframe
-;; to show its candidate menu.
+;; ** What is ivy-posframe ivy-posframe is a ivy extension, which let
+;; ivy use posframe to show its candidate menu.
-;; NOTE: ivy-posframe requires Emacs 26 and do not support
-;; mouse click.
+;; NOTE: ivy-posframe requires Emacs 26 and do not support mouse
+;; click.
;; ** Display functions
@@ -50,31 +49,43 @@
;; [[./snapshots/ivy-posframe-display-at-point.gif]]
;; ** How to enable ivy-posframe
-;; 1. Global mode
-;; #+BEGIN_EXAMPLE
-;; (require 'ivy-posframe)
-;; (setq ivy-display-function #'ivy-posframe-display)
-;; ;; (setq ivy-display-function #'ivy-posframe-display-at-frame-center)
-;; ;; (setq ivy-display-function #'ivy-posframe-display-at-window-center)
-;; ;; (setq ivy-display-function
#'ivy-posframe-display-at-frame-bottom-left)
-;; ;; (setq ivy-display-function
#'ivy-posframe-display-at-window-bottom-left)
-;; ;; (setq ivy-display-function #'ivy-posframe-display-at-point)
-;; (ivy-posframe-enable)
-;; #+END_EXAMPLE
-;; 2. Per-command mode.
-;; #+BEGIN_EXAMPLE
-;; (require 'ivy-posframe)
-;; ;; Different command can use different display function.
-;; (push '(counsel-M-x . ivy-posframe-display-at-window-bottom-left)
ivy-display-functions-alist)
-;; (push '(complete-symbol . ivy-posframe-display-at-point)
ivy-display-functions-alist)
-;; (ivy-posframe-enable)
-;; #+END_EXAMPLE
-;; 3. Fallback mode
-;; #+BEGIN_EXAMPLE
-;; (require 'ivy-posframe)
-;; (push '(t . ivy-posframe-display) ivy-display-functions-alist)
-;; (ivy-posframe-enable)
-;; #+END_EXAMPLE
+;; *** Global mode
+;; #+BEGIN_EXAMPLE
+;; (require 'ivy-posframe)
+;; (setq ivy-display-function #'ivy-posframe-display)
+;; ;; (setq ivy-display-function #'ivy-posframe-display-at-frame-center)
+;; ;; (setq ivy-display-function #'ivy-posframe-display-at-window-center)
+;; ;; (setq ivy-display-function #'ivy-posframe-display-at-frame-bottom-left)
+;; ;; (setq ivy-display-function #'ivy-posframe-display-at-window-bottom-left)
+;; ;; (setq ivy-display-function #'ivy-posframe-display-at-point)
+;; (ivy-posframe-enable)
+;; #+END_EXAMPLE
+;; *** Per-command mode.
+;; #+BEGIN_EXAMPLE
+;; (require 'ivy-posframe)
+;; ;; Different command can use different display function.
+;; (push '(counsel-M-x . ivy-posframe-display-at-window-bottom-left)
ivy-display-functions-alist)
+;; (push '(complete-symbol . ivy-posframe-display-at-point)
ivy-display-functions-alist)
+;; (push '(swiper . ivy-posframe-display-at-point) ivy-display-functions-alist)
+;; (ivy-posframe-enable)
+;; #+END_EXAMPLE
+;;
+;; NOTE: Using swiper as example: swiper's display function *only*
+;; take effect when you call swiper command with global keybinding, if
+;; you call swiper command with 'M-x' (for example: counsel-M-x),
+;; counsel-M-x's display function will take effect instead of
+;; swiper's.
+
+;; The value of variable `this-command' will be used as the search key
+;; by ivy to find display function in `ivy-display-functions-alist',
+;; "C-h v this-command" is a good idea.
+
+;; *** Fallback mode
+;; #+BEGIN_EXAMPLE
+;; (require 'ivy-posframe)
+;; (push '(t . ivy-posframe-display) ivy-display-functions-alist)
+;; (ivy-posframe-enable)
+;; #+END_EXAMPLE
;; ** Tips
- [elpa] externals/ivy-posframe 7bfd14f 068/195: Add ivy-posframe-border face and use it, (continued)
- [elpa] externals/ivy-posframe 7bfd14f 068/195: Add ivy-posframe-border face and use it, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ba42fec 019/195: Fix warn, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d3a82a9 028/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 23c1619 073/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 78ec80f 074/195: ivy-posframe-workable-p -> posframe-workable-p, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe d70aa81 082/195: Merge pull request #32 from conao3/refactoring/lambda, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 786dcc7 094/195: Fix "ivy-posframe copies prompt text as kill" #41, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 04d3719 037/195: Update README, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe ff2578a 044/195: Add ivy-posframe-border-width, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 60e1f99 045/195: add variable to customize ivy-posframe style, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe aec9d8a 058/195: Update ivy-posframe README,
Feng Shu <=
- [elpa] externals/ivy-posframe 704feb2 062/195: Let ivy-posframe only inhert default, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 3c00455 050/195: Add ivy-posframe-swiper-avy, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 9e5c4a9 060/195: Fix: Should the default width be the frame instead of the window? #22, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 0254f6e 065/195: Add document about border, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe f341bae 061/195: Add blank line, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe f6f07cf 056/195: Revert "Simplify ivy-postframe-avy", Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8799af1 069/195: Revert "Add ivy-posframe-border face and use it", Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 26612b2 071/195: Add ivy-posframe-border face and use it, Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 8d18644 072/195: Revert "Revert "Simplify ivy-postframe-avy"", Feng Shu, 2020/10/03
- [elpa] externals/ivy-posframe 31363f3 076/195: Get correct prompt for recursive minibuffers, Feng Shu, 2020/10/03