update packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
This is ivy.info, produced by makeinfo version 6.5 from ivy.texi.
|
||||
This is ivy.info, produced by makeinfo version 6.7 from ivy.texi.
|
||||
|
||||
Ivy manual, version 0.13.0
|
||||
Ivy manual, version 0.13.4
|
||||
|
||||
Ivy is an interactive interface for completion in Emacs. Emacs uses
|
||||
completion mechanism in a variety of contexts: code, menus, commands,
|
||||
@@ -11,7 +11,7 @@ available choices while previewing in the minibuffer. Selecting the
|
||||
final candidate is either through simple keyboard character inputs or
|
||||
through powerful regular expressions.
|
||||
|
||||
Copyright (C) 2015-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2015–2021 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to copy, distribute and/or modify this
|
||||
document under the terms of the GNU Free Documentation License,
|
||||
@@ -19,6 +19,7 @@ through powerful regular expressions.
|
||||
Foundation; with no Invariant Sections, no Front-Cover Texts, and
|
||||
no Back-Cover Texts. A copy of the license is included in the
|
||||
section entitled "GNU Free Documentation License".
|
||||
|
||||
INFO-DIR-SECTION Emacs
|
||||
START-INFO-DIR-ENTRY
|
||||
* Ivy: (ivy). Using Ivy for completion.
|
||||
@@ -203,21 +204,22 @@ File: ivy.info, Node: Installing from Emacs Package Manager, Next: Installing
|
||||
|
||||
‘M-x’ ‘package-install’ ‘RET’ ‘counsel’ ‘RET’
|
||||
|
||||
Ivy is installed as part of the ‘counsel’ package, which is available
|
||||
from two different package archives, GNU ELPA and MELPA. For the latest
|
||||
stable version, use the GNU ELPA archives. For current hourly builds,
|
||||
use the MELPA archives.
|
||||
Ivy is installed alongside the ‘counsel’ package, which is available
|
||||
from two different package archives, GNU ELPA and MELPA. For the latest
|
||||
stable version, use the GNU ELPA archive. For the latest development
|
||||
snaphshot, use the GNU-devel ELPA archive.
|
||||
|
||||
Ivy is split into three packages: ‘ivy’, ‘swiper’ and ‘counsel’; by
|
||||
installing ‘counsel’, the other two are brought in as dependencies. If
|
||||
you are not interested in the extra functionality provided by ‘swiper’
|
||||
and ‘counsel’, you can install only ‘ivy’.
|
||||
|
||||
See the code below for adding MELPA to the list of package archives:
|
||||
See the code below for adding GNU-devel ELPA to your list of package
|
||||
archives:
|
||||
|
||||
(require 'package)
|
||||
(add-to-list 'package-archives
|
||||
'("melpa" . "https://melpa.org/packages/"))
|
||||
'("gnu-devel" . "https://elpa.gnu.org/devel/"))
|
||||
|
||||
After this do ‘M-x’ ‘package-refresh-contents’ ‘RET’, followed by
|
||||
‘M-x’ ‘package-install’ ‘RET’ ‘counsel’ ‘RET’.
|
||||
@@ -233,7 +235,7 @@ File: ivy.info, Node: Installing from the Git repository, Prev: Installing fro
|
||||
Why install from Git?
|
||||
.....................
|
||||
|
||||
• No need to wait for MELPA’s hourly builds
|
||||
• No need to wait for GNU ELPA / MELPA builds
|
||||
• Easy to revert to previous versions
|
||||
• Contribute to Ivy’s development; send patches; pull requests
|
||||
|
||||
@@ -457,11 +459,11 @@ extends usability of lists in Emacs.
|
||||
|
||||
(should
|
||||
(equal (ivy-with
|
||||
'(progn
|
||||
(ivy-read "Test: " '("can do" "can't, sorry" "other"))
|
||||
ivy-text)
|
||||
"c <tab>")
|
||||
"can"))
|
||||
'(progn
|
||||
(ivy-read "Test: " '("can do" "can't, sorry" "other"))
|
||||
ivy-text)
|
||||
"c <tab>")
|
||||
"can"))
|
||||
|
||||
‘C-M-j’ (‘ivy-immediate-done’)
|
||||
..............................
|
||||
@@ -494,6 +496,9 @@ keeps the minibuffer open for applying subsequent actions.
|
||||
Adding an extra meta key to the normal key chord invokes the special
|
||||
version of the regular commands that enables applying multiple actions.
|
||||
|
||||
Note that these operations are supported only by completion sessions
|
||||
that use the ‘ivy-read’ API, rather than the built-in ‘completing-read’.
|
||||
|
||||
‘C-M-m’ (‘ivy-call’)
|
||||
....................
|
||||
|
||||
@@ -560,7 +565,7 @@ File: ivy.info, Node: Key bindings that alter the minibuffer input, Next: Othe
|
||||
‘M-p’ (‘ivy-previous-history-element’)
|
||||
......................................
|
||||
|
||||
Cycles forward through the Ivy command history.
|
||||
Cycles backwards through the Ivy command history.
|
||||
|
||||
‘M-i’ (‘ivy-insert-current’)
|
||||
............................
|
||||
@@ -647,7 +652,7 @@ jjjj’ in Hydra.
|
||||
Toggle calling the action after each candidate change. It modifies
|
||||
‘j’ to ‘jg’, ‘k’ to ‘kg’ etc.
|
||||
|
||||
‘m’ (‘ivy-rotate-preferred-builders’)
|
||||
‘M’ (‘ivy-rotate-preferred-builders’)
|
||||
.....................................
|
||||
|
||||
Rotate the current regexp matcher.
|
||||
@@ -779,7 +784,7 @@ completion:
|
||||
|
||||
(setq ivy-re-builders-alist
|
||||
'((read-file-name-internal . ivy--regex-fuzzy)
|
||||
(t . ivy--regex-plus)))
|
||||
(t . ivy--regex-plus)))
|
||||
|
||||
Here, ‘read-file-name-internal’ is a function that is passed as the
|
||||
second argument to ‘completing-read’ for file name completion.
|
||||
@@ -1010,6 +1015,8 @@ File: ivy.info, Node: Defcustoms, Next: Actions, Prev: Faces, Up: Customizat
|
||||
The default behavior is to quit the completion after ‘DEL’ – a
|
||||
handy key to invoke after mistakenly triggering a completion.
|
||||
|
||||
Another common option is ‘ignore’, which does nothing.
|
||||
|
||||
|
||||
File: ivy.info, Node: Actions, Next: Packages, Prev: Defcustoms, Up: Customization
|
||||
|
||||
@@ -1149,10 +1156,10 @@ File: ivy.info, Node: Example - define a new command with several actions, Pre
|
||||
(defun my-command-with-3-actions ()
|
||||
(interactive)
|
||||
(ivy-read "test: " '("foo" "bar" "baz")
|
||||
:action '(1
|
||||
("o" my-action-1 "action 1")
|
||||
("j" my-action-2 "action 2")
|
||||
("k" my-action-3 "action 3"))))
|
||||
:action '(1
|
||||
("o" my-action-1 "action 1")
|
||||
("j" my-action-2 "action 2")
|
||||
("k" my-action-3 "action 3"))))
|
||||
|
||||
The number 1 above is the index of the default action. Each action
|
||||
has its own string description for easy selection.
|
||||
@@ -1564,20 +1571,20 @@ argument.
|
||||
"Forward to `describe-function'."
|
||||
(interactive)
|
||||
(ivy-read "Describe function: "
|
||||
(let (cands)
|
||||
(mapatoms
|
||||
(lambda (x)
|
||||
(when (fboundp x)
|
||||
(push (symbol-name x) cands))))
|
||||
cands)
|
||||
:keymap counsel-describe-map
|
||||
:preselect (ivy-thing-at-point)
|
||||
:history 'counsel-describe-symbol-history
|
||||
:require-match t
|
||||
:action (lambda (x)
|
||||
(describe-function
|
||||
(intern x)))
|
||||
:caller 'counsel-describe-function))
|
||||
(let (cands)
|
||||
(mapatoms
|
||||
(lambda (x)
|
||||
(when (fboundp x)
|
||||
(push (symbol-name x) cands))))
|
||||
cands)
|
||||
:keymap counsel-describe-map
|
||||
:preselect (ivy-thing-at-point)
|
||||
:history 'counsel-describe-symbol-history
|
||||
:require-match t
|
||||
:action (lambda (x)
|
||||
(describe-function
|
||||
(intern x)))
|
||||
:caller 'counsel-describe-function))
|
||||
|
||||
Here are the interesting features of the above function, in the order
|
||||
that they appear:
|
||||
@@ -1634,9 +1641,9 @@ narrowing) or select a candidate from the visible collection.
|
||||
(progn
|
||||
(counsel--async-command
|
||||
(format "locate %s '%s'"
|
||||
(mapconcat #'identity counsel-locate-options " ")
|
||||
(counsel--elisp-to-pcre
|
||||
(ivy--regex str))))
|
||||
(mapconcat #'identity counsel-locate-options " ")
|
||||
(counsel--elisp-to-pcre
|
||||
(ivy--regex str))))
|
||||
'("" "working..."))))
|
||||
|
||||
;;;###autoload
|
||||
@@ -1645,15 +1652,15 @@ narrowing) or select a candidate from the visible collection.
|
||||
INITIAL-INPUT can be given as the initial minibuffer input."
|
||||
(interactive)
|
||||
(ivy-read "Locate: " #'counsel-locate-function
|
||||
:initial-input initial-input
|
||||
:dynamic-collection t
|
||||
:history 'counsel-locate-history
|
||||
:action (lambda (file)
|
||||
(with-ivy-window
|
||||
(when file
|
||||
(find-file file))))
|
||||
:unwind #'counsel-delete-process
|
||||
:caller 'counsel-locate))
|
||||
:initial-input initial-input
|
||||
:dynamic-collection t
|
||||
:history 'counsel-locate-history
|
||||
:action (lambda (file)
|
||||
(with-ivy-window
|
||||
(when file
|
||||
(find-file file))))
|
||||
:unwind #'counsel-delete-process
|
||||
:caller 'counsel-locate))
|
||||
|
||||
Here are the interesting features of the above functions, in the
|
||||
order that they appear:
|
||||
@@ -1694,18 +1701,18 @@ each displayed strings.
|
||||
|
||||
(defun find-candidates-function (str pred _)
|
||||
(let ((props '(1 2))
|
||||
(strs '("foo" "foo2")))
|
||||
(strs '("foo" "foo2")))
|
||||
(cl-mapcar (lambda (s p) (propertize s 'property p))
|
||||
strs
|
||||
props)))
|
||||
strs
|
||||
props)))
|
||||
|
||||
(defun find-candidates ()
|
||||
(interactive)
|
||||
(ivy-read "Find symbols: "
|
||||
#'find-candidates-function
|
||||
:action (lambda (x)
|
||||
(message "Value: %s" (get-text-property 0 'property x)
|
||||
))))
|
||||
#'find-candidates-function
|
||||
:action (lambda (x)
|
||||
(message "Value: %s"
|
||||
(get-text-property 0 'property x)))))
|
||||
|
||||
Here are the interesting features of the above function:
|
||||
|
||||
@@ -1719,8 +1726,8 @@ each displayed strings.
|
||||
|
||||
File: ivy.info, Node: Variable Index, Next: Keystroke Index, Prev: API, Up: Top
|
||||
|
||||
Variable Index
|
||||
**************
|
||||
9 Variable Index
|
||||
****************
|
||||
|
||||
| ||||