[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1992f44 165/167: doc/ivy.texi: Re-export using adjusted te
From: |
Oleh Krehel |
Subject: |
[elpa] master 1992f44 165/167: doc/ivy.texi: Re-export using adjusted texinfo exporter |
Date: |
Tue, 08 Dec 2015 10:50:47 +0000 |
branch: master
commit 1992f4414299ecd0de8db14b020c9bf60eee2c1e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
doc/ivy.texi: Re-export using adjusted texinfo exporter
* doc/ivy.org: Add defopt/endopt macros. Change `ivy-wrap' and
`ivy-height' to defopt.
---
doc/ivy.org | 28 +++++---
doc/ivy.texi | 196 ++++++++++++++++++++++++++++------------------------------
2 files changed, 113 insertions(+), 111 deletions(-)
diff --git a/doc/ivy.org b/doc/ivy.org
index 37c215b..d90062c 100644
--- a/doc/ivy.org
+++ b/doc/ivy.org
@@ -11,7 +11,9 @@
#+OPTIONS: H:6 num:6 toc:4
#+STARTUP: indent
-
+* Macros
:noexport:
+#+MACRO: defopt #+TEXINFO: @defopt $1
+#+MACRO: endopt #+TEXINFO: @end defopt
* Copying
:PROPERTIES:
:COPYING: t
@@ -223,19 +225,25 @@ under their respective commands.
*** Key bindings for navigation
-- ~C-n~ (=ivy-next-line=) select next candidate
-- ~C-p~ (=ivy-previous-line=) selects previous candidate
+- ~C-n~ (=ivy-next-line=) selects the next candidate
+- ~C-p~ (=ivy-previous-line=) selects the previous candidate
- ~M-<~ (=ivy-beginning-of-buffer=) selects the first candidate
- ~M->~ (=ivy-end-of-buffer=) selects the last candidate
-- ~C-v~ (=ivy-scroll-up-command=) scrolls up by 10 lines
-- ~M-v~ (=ivy-scroll-down-command=) scrolls down by 10 lines
+- ~C-v~ (=ivy-scroll-up-command=) scrolls up by =ivy-height= lines
+- ~M-v~ (=ivy-scroll-down-command=) scrolls down by =ivy-height= lines
+
+{{{defopt(ivy-wrap)}}}
+This user option allows to get the wrap-around behavior for ~C-n~ and
+~C-p~. When set to =t=, =ivy-next-line= and =ivy-previous-line= will
+cycle past the last and the first candidates respectively.
-To get the wrap-around behavior of ~C-n~ and ~C-p~ to cycle past the
-last and first candidates, change the default (=ivy-wrap nil=) to
-(=ivy-warp t=).
+This behavior is off by default.
+{{{endopt}}}
-Adjust scroll size through the variable =ivy-height=, which by default
-is set to 10.
+{{{defopt(ivy-height)}}}
+Use this variable to adjust the minibuffer height, and therefore the
+scroll size for ~C-v~ and ~M-v~.
+{{{endopt}}}
*** Key bindings for single selection, action, then exit minibuffer
diff --git a/doc/ivy.texi b/doc/ivy.texi
index 555fc7a..b3e7c07 100644
--- a/doc/ivy.texi
+++ b/doc/ivy.texi
@@ -89,18 +89,14 @@ Minibuffer key bindings
* Other key bindings::
* Hydra in the minibuffer::
* Saving the current completion session to a buffer::
-
Completion styles
* ivy--regex-plus::
* ivy--regex-ignore-order::
* ivy--regex-fuzzy::
-
@end detailmenu
@end menu
-
-
@node Introduction
@chapter Introduction
@@ -115,15 +111,15 @@ discoverability.
@subsubheading Minimalism
Uncluttered minibuffer is minimalism. Ivy shows the completion
defaults, the number of matches, and 10 candidate matches below the
-input line. Customize @verb{~ivy-length~} to adjust the number of candidate
+input line. Customize @code{ivy-length} to adjust the number of candidate
matches displayed in the minibuffer.
@subsubheading Simplicity
Simplicity is about Ivy's behavior in the minibuffer. It is also about
the code interface to extend Ivy's functionality. The minibuffer area
-behaves as close to @verb{~fundamental-mode~} as possible. @code{SPC} inserts a
+behaves as close to @code{fundamental-mode} as possible. @kbd{SPC} inserts a
space, for example, instead of being bound to the more complex
address@hidden Ivy's code uses easy-to-examine global
address@hidden Ivy's code uses easy-to-examine global
variables; avoids needless complications with branch-introducing
custom macros.
@@ -131,19 +127,19 @@ custom macros.
Customizability is about being able to use different methods and
interfaces of completion to tailor the selection process. For example,
adding a custom display function that points to a selected candidate
-with @verb{~->~}, instead of highlighting the selected candidate with the
address@hidden face. Or take the customization of actions, say
-after the candidate function is selected. @code{RET} uses
address@hidden to describe the function, whereas @code{M-o d}
-jumps to that function's definition in the code. The @code{M-o} prefix can
-be uniformly used with characters like @code{d} to group similar actions.
+with @code{->}, instead of highlighting the selected candidate with the
address@hidden face. Or take the customization of actions, say
+after the candidate function is selected. @kbd{RET} uses
address@hidden to describe the function, whereas @kbd{M-o d}
+jumps to that function's definition in the code. The @kbd{M-o} prefix can
+be uniformly used with characters like @kbd{d} to group similar actions.
@subsubheading Discoverability
Ivy displays easily discoverable commands through the hydra facility.
address@hidden in the minibuffer displays a hydra menu. It opens up within an
address@hidden in the minibuffer displays a hydra menu. It opens up within an
expanded minibuffer area. Each menu item comes with short
documentation strings and highlighted one-key completions. So
-discovering even seldom used keys is simply a matter of @code{C-o} in the
+discovering even seldom used keys is simply a matter of @kbd{C-o} in the
minibuffer while in the midst of the Ivy interaction. This
discoverability minimizes exiting Ivy interface for documentation
look-ups.
@@ -161,9 +157,9 @@ from Ivy's development repository.
@node Installing from Emacs Package Manager
@section Installing from Emacs Package Manager
address@hidden @verb{~package-install~} @code{RET} @verb{~swiper~} @code{RET}
address@hidden @code{package-install} @kbd{RET} @code{swiper} @kbd{RET}
-Ivy is installed as part of @verb{~swiper~} package. @verb{~swiper~} is
available
+Ivy is installed as part of @code{swiper} package. @code{swiper} is available
from two different package archives, GNU ELPA and MELPA. For the
latest stable version, use the GNU ELPA archives using the above M-x
command.
@@ -178,8 +174,8 @@ for adding MELPA to the list of package archives:
'("melpa" . "http://melpa.org/packages/"))
@end lisp
-After this do @code{M-x} @verb{~package-refresh-contents~} @code{RET},
followed by
address@hidden @verb{~package-install~} @code{RET} @verb{~swiper~} @code{RET}.
+After this do @kbd{M-x} @code{package-refresh-contents} @kbd{RET}, followed by
address@hidden @code{package-install} @kbd{RET} @code{swiper} @kbd{RET}.
For package manager details, see @ref{Packages,,,emacs,}.
@@ -191,10 +187,8 @@ Why install from Git?
@itemize
@item
No need to wait for MELPA's hourly builds
-
@item
Easy to revert to previous versions
-
@item
Contribute to Ivy's development; send patches; pull requests
@end itemize
@@ -232,7 +226,7 @@ First enable Ivy completion everywhere:
(ivy-mode 1)
@end lisp
-Note: @verb{~ivy-mode~} can be toggled on and off with @code{M-x}
@verb{~ivy-mode~}.
+Note: @code{ivy-mode} can be toggled on and off with @kbd{M-x} @code{ivy-mode}.
@menu
* Basic customization::
@end menu
@@ -250,7 +244,7 @@ users:
(setq ivy-count-format "(%d/%d) ")
@end lisp
-For additional customizations, refer to @verb{~M-x describe-variable~}
+For additional customizations, refer to @code{M-x describe-variable}
documentation.
@node Key bindings
@@ -287,7 +281,7 @@ Recommended key bindings are:
(global-set-key (kbd "C-S-o") 'counsel-rhythmbox)
@end lisp
@subsubheading Ivy-resume and other commands
address@hidden resumes the last Ivy-based completion.
address@hidden resumes the last Ivy-based completion.
@lisp
(global-set-key (kbd "C-c C-r") 'ivy-resume)
@@ -297,11 +291,11 @@ Recommended key bindings are:
@section Minibuffer key bindings
Ivy includes several minibuffer bindings, which are defined in the
address@hidden keymap variable. The most frequently used ones
address@hidden keymap variable. The most frequently used ones
are described here.
address@hidden or @verb{~counsel-M-x~} add more through the @verb{~keymap~}
argument to
address@hidden These keys, also active in the minibuffer, are described
address@hidden or @code{counsel-M-x} add more through the @code{keymap}
argument to
address@hidden These keys, also active in the minibuffer, are described
under their respective commands.
@menu
* Key bindings for navigation::
@@ -318,30 +312,31 @@ under their respective commands.
@itemize
@item
address@hidden (@verb{~ivy-next-line~}) select next candidate
-
address@hidden (@code{ivy-next-line}) selects the next candidate
@item
address@hidden (@verb{~ivy-previous-line~}) selects previous candidate
-
address@hidden (@code{ivy-previous-line}) selects the previous candidate
@item
address@hidden<} (@verb{~ivy-beginning-of-buffer~}) selects the first candidate
-
address@hidden<} (@code{ivy-beginning-of-buffer}) selects the first candidate
@item
address@hidden>} (@verb{~ivy-end-of-buffer~}) selects the last candidate
-
address@hidden>} (@code{ivy-end-of-buffer}) selects the last candidate
@item
address@hidden (@verb{~ivy-scroll-up-command~}) scrolls up by 10 lines
-
address@hidden (@code{ivy-scroll-up-command}) scrolls up by @code{ivy-height}
lines
@item
address@hidden (@verb{~ivy-scroll-down-command~}) scrolls down by 10 lines
address@hidden (@code{ivy-scroll-down-command}) scrolls down by
@code{ivy-height} lines
@end itemize
-To get the wrap-around behavior of @code{C-n} and @code{C-p} to cycle past the
-last and first candidates, change the default (@verb{~ivy-wrap nil~}) to
-(@verb{~ivy-warp t~}).
address@hidden ivy-wrap
+This user option allows to get the wrap-around behavior for @kbd{C-n} and
address@hidden When set to @code{t}, @code{ivy-next-line} and
@code{ivy-previous-line} will
+cycle past the last and the first candidates respectively.
+
+This behavior is off by default.
address@hidden defopt
-Adjust scroll size through the variable @verb{~ivy-height~}, which by default
-is set to 10.
address@hidden ivy-height
+Use this variable to adjust the minibuffer height, and therefore the
+scroll size for @kbd{C-v} and @kbd{M-v}.
address@hidden defopt
@node Key bindings for single selection action then exit minibuffer
@subsection Key bindings for single selection, action, then exit minibuffer
@@ -356,39 +351,39 @@ narrowing is completed. No need to exit the interface if
unsure which
action to run. This delayed flexibility and customization of actions
extends usability of lists in Emacs.
address@hidden or @code{RET} (@verb{~ivy-done~}) calls the default action and
exits the
address@hidden or @kbd{RET} (@code{ivy-done}) calls the default action and
exits the
minibuffer.
address@hidden (@verb{~ivy-dispatching-done~}) presents all available valid
actions
address@hidden (@code{ivy-dispatching-done}) presents all available valid
actions
from which to choose. When there is only one action available, there
-is no difference between @code{M-o} and @code{C-m}.
+is no difference between @kbd{M-o} and @kbd{C-m}.
address@hidden (@verb{~ivy-alt-done~}) calls the alternate action, such as
completing
-a directory name in a file list whereas @code{C-m} will select that directory
address@hidden (@code{ivy-alt-done}) calls the alternate action, such as
completing
+a directory name in a file list whereas @kbd{C-m} will select that directory
and exit the minibuffer.
Exiting the minibuffer also closes the Ivy window (as specified by
address@hidden). This closing and exiting sequence is conveniently off
address@hidden). This closing and exiting sequence is conveniently off
when applying multiple actions. Multiple actions and multiple
selections as covered in the next section of this manual.
address@hidden (@verb{~ivy-partial-or-done~}) attempts partial completion,
extending
address@hidden (@code{ivy-partial-or-done}) attempts partial completion,
extending
current input as much as possible.
address@hidden TAB} is the same as @code{C-j}.
address@hidden TAB} is the same as @kbd{C-j}.
address@hidden (@verb{~ivy-immediate-done~}) is useful when there is no match
for
-the given input. Or there is an incorrect partial match. @code{C-M-j} with
address@hidden lists ignores the partial match and instead takes the
-current input to create a new directory with @verb{~dired-create-directory~}.
address@hidden (@code{ivy-immediate-done}) is useful when there is no match for
+the given input. Or there is an incorrect partial match. @kbd{C-M-j} with
address@hidden lists ignores the partial match and instead takes the
+current input to create a new directory with @code{dired-create-directory}.
address@hidden illustrates how Ivy distinguishes between calling
address@hidden illustrates how Ivy distinguishes between calling
an action on the @emph{currently selected} candidate and calling an action
on the @emph{current input}.
Invoking avy completion with @kbd{C-'} (@code{ivy-avy}).
address@hidden uses avy's visible jump mechanism, which can further reduce
-Ivy's line-by-line scrolling that requires multiple @code{C-n} or @code{C-p}
address@hidden uses avy's visible jump mechanism, which can further reduce
+Ivy's line-by-line scrolling that requires multiple @kbd{C-n} or @kbd{C-p}
keystrokes.
@node Key bindings for multiple selections and actions keep minibuffer open
@@ -402,55 +397,55 @@ Adding an extra meta key to the normal key chord invokes
the special
version of the regular commands that enables applying multiple
actions.
address@hidden (@verb{~ivy-call~}) is the non-exiting version of the default
action,
address@hidden (@verb{~ivy-done~}). Instead of closing the minibuffer,
@code{C-M-m} allows
-selecting another candidate or another action. For example, @code{C-M-m} on
-functions list invokes @verb{~describe-function~}. When combined with
@code{C-n},
address@hidden (@code{ivy-call}) is the non-exiting version of the default
action,
address@hidden (@code{ivy-done}). Instead of closing the minibuffer,
@kbd{C-M-m} allows
+selecting another candidate or another action. For example, @kbd{C-M-m} on
+functions list invokes @code{describe-function}. When combined with @kbd{C-n},
function descriptions can be invoked quickly in succession.
address@hidden exits the minibuffer.
address@hidden exits the minibuffer.
address@hidden recalls the state of the completion session just before
-its last exit. Useful after an accidental @code{C-m} (@verb{~ivy-done~}).
address@hidden recalls the state of the completion session just before
+its last exit. Useful after an accidental @kbd{C-m} (@code{ivy-done}).
address@hidden (@verb{~ivy-dispatching-call~}) is a non-exiting version of
@code{M-o}
-(@verb{~ivy-dispatching-done~}) that can accumulate candidates into a queue.
-For example, for playback in @verb{~counsel-rhythmbox~}, @code{C-M-o e}
en-queues
-the selected candidate, and @code{C-n C-m} plays the next one in the queue.
address@hidden (@code{ivy-dispatching-call}) is a non-exiting version of
@kbd{M-o}
+(@code{ivy-dispatching-done}) that can accumulate candidates into a queue.
+For example, for playback in @code{counsel-rhythmbox}, @kbd{C-M-o e} en-queues
+the selected candidate, and @kbd{C-n C-m} plays the next one in the queue.
address@hidden (@verb{~ivy-next-line-and-call~}) combines @code{C-n} and
@code{C-M-m}. Applies
address@hidden (@code{ivy-next-line-and-call}) combines @kbd{C-n} and
@kbd{C-M-m}. Applies
an action and moves to next line. Comes in handy when opening multiple
-files from @verb{~counsel-find-file~}, @verb{~counsel-git-grep~},
@verb{~counsel-ag~}, or
address@hidden lists. Just hold @code{C-M-n} for rapid-fire default
+files from @code{counsel-find-file}, @code{counsel-git-grep},
@code{counsel-ag}, or
address@hidden lists. Just hold @kbd{C-M-n} for rapid-fire default
action on each successive element of the list.
address@hidden (@verb{~ivy-previous-line-and-call~}) combines @code{C-p} and
@code{C-M-m}. Is
address@hidden (@code{ivy-previous-line-and-call}) combines @kbd{C-p} and
@kbd{C-M-m}. Is
the same as above except that it moves through the list in the other
direction.
@node Key bindings that alter minibuffer input
@subsection Key bindings that alter minibuffer input
address@hidden (@verb{~ivy-next-history-element~}) and @code{M-p}
-(@verb{~ivy-previous-history-element~}) cycle through the Ivy command
address@hidden (@code{ivy-next-history-element}) and @kbd{M-p}
+(@code{ivy-previous-history-element}) cycle through the Ivy command
history. Ivy updates an internal history list after each action. When
-this history list is empty, @code{M-n} inserts symbol (or URL) at point
+this history list is empty, @kbd{M-n} inserts symbol (or URL) at point
into the minibuffer.
address@hidden (@verb{~ivy-insert-current~}) inserts the current candidate into
the
-minibuffer. Useful for copying and renaming files, for example: @code{M-i}
-to insert the original file name string, edit it, and then @code{C-m} to
address@hidden (@code{ivy-insert-current}) inserts the current candidate into
the
+minibuffer. Useful for copying and renaming files, for example: @kbd{M-i}
+to insert the original file name string, edit it, and then @kbd{C-m} to
complete the renaming.
address@hidden (@verb{~ivy-yank-word~}) inserts sub-word at point into
minibuffer. This
-is similar to @code{C-s C-w} with @verb{~isearch~}. Ivy reserves @code{C-w} for
address@hidden
address@hidden (@code{ivy-yank-word}) inserts sub-word at point into
minibuffer. This
+is similar to @kbd{C-s C-w} with @code{isearch}. Ivy reserves @kbd{C-w} for
address@hidden
address@hidden (@verb{~ivy-restrict-to-matches~}) deletes the current input, and
address@hidden (@code{ivy-restrict-to-matches}) deletes the current input, and
resets the candidates list to the currently restricted matches. This
is how Ivy provides narrowing in successive tiers.
address@hidden (@verb{~ivy-reverse-i-search~}) works just like @code{C-r} at
bash command
address@hidden (@code{ivy-reverse-i-search}) works just like @kbd{C-r} at bash
command
prompt, where the completion candidates are the history items. Upon
completion, the selected candidate string is inserted into the
minibuffer.
@@ -458,23 +453,22 @@ minibuffer.
@node Other key bindings
@subsection Other key bindings
address@hidden (@verb{~ivy-kill-ring-save~}) copies selected candidates to the
kill
address@hidden (@code{ivy-kill-ring-save}) copies selected candidates to the
kill
ring; when the region is active, copies active region.
@node Hydra in the minibuffer
@subsection Hydra in the minibuffer
address@hidden (@verb{~hydra-ivy/body~}) invokes Hydra menus with key shortcuts.
address@hidden (@code{hydra-ivy/body}) invokes Hydra menus with key shortcuts.
address@hidden or @code{i} resumes editing.
address@hidden or @kbd{i} resumes editing.
-Hydra reduces key strokes, for example: @code{C-n C-n C-n C-n} is @code{C-o
+Hydra reduces key strokes, for example: @kbd{C-n C-n C-n C-n} is @kbd{C-o
jjjj} in Hydra. Hydra has other benefits besides certain shorter key
bindings:
@itemize
@item
address@hidden<} and @code{>} to adjust height of minibuffer,
-
address@hidden<} and @kbd{>} to adjust height of minibuffer,
@item
describes the current completion state, such as case folding and the
current action.
@@ -485,17 +479,17 @@ Minibuffer editing is disabled when Hydra is active.
@node Saving the current completion session to a buffer
@subsection Saving the current completion session to a buffer
address@hidden C-o} (@verb{~ivy-occur~}) saves the current candidates to a new
buffer;
address@hidden C-o} (@code{ivy-occur}) saves the current candidates to a new
buffer;
the list is active in the new buffer.
address@hidden or @code{mouse-1} in the new buffer calls the appropriate action
on
address@hidden or @kbd{mouse-1} in the new buffer calls the appropriate action
on
the selected candidate.
Ivy has no limit on the number of active buffers like these.
Ivy takes care of making these buffer names unique. It applies
-descriptive names, for example: @verb{~*ivy-occur counsel-describe-variable
-"function$*~}.
+descriptive names, for example: @code{*ivy-occur counsel-describe-variable
+"function$*}.
@node Completion styles
@chapter Completion styles
@@ -510,7 +504,7 @@ The default is:
'((t . ivy--regex-plus)))
@end lisp
-The default @verb{~ivy--regex-plus~} narrowing is always invoked unless
+The default @code{ivy--regex-plus} narrowing is always invoked unless
specified otherwise. For example, file name completion may have a
custom completion function:
@@ -533,9 +527,9 @@ The main regex-builders currently in Ivy are:
@node ivy--regex-plus
@section ivy--regex-plus
address@hidden is Ivy's default completion method.
address@hidden is Ivy's default completion method.
address@hidden matches by splitting the input by spaces and
address@hidden matches by splitting the input by spaces and
rebuilding it into a regex.
As the search string is typed in Ivy's minibuffer, it is transformed
@@ -574,18 +568,18 @@ group.
@node ivy--regex-ignore-order
@section ivy--regex-ignore-order
address@hidden ignores the order of regexp tokens when
address@hidden ignores the order of regexp tokens when
searching for matching candidates. For instance, the input "for
-example" will match "example test for". Otherwise @verb{~ivy--regex-plus~}
+example" will match "example test for". Otherwise @code{ivy--regex-plus}
normal behavior is to honor the order of regexp tokens.
@node ivy--regex-fuzzy
@section ivy--regex-fuzzy
address@hidden splits each character with a wild card. Searching
address@hidden splits each character with a wild card. Searching
for "for" returns all "f.*o.*r" matches, resulting in a large number
of hits. Yet some searches need these extra hits. Ivy sorts such
-large lists using @verb{~flx~} package's scoring mechanism, if it's
+large lists using @code{flx} package's scoring mechanism, if it's
installed.
@bye
- [elpa] master 435e9d4 159/167: Use :caller for ivy-re-builders-alist, (continued)
- [elpa] master 435e9d4 159/167: Use :caller for ivy-re-builders-alist, Oleh Krehel, 2015/12/08
- [elpa] master 8dd88e4 149/167: doc/Changelog.org: Update up to 2bec99d, Oleh Krehel, 2015/12/08
- [elpa] master 706349f 160/167: swiper.el (swiper-font-lock-ensure): Add vc-dir-mode, Oleh Krehel, 2015/12/08
- [elpa] master 2a55ada 163/167: doc/Changelog.org: Update up to 706349f, Oleh Krehel, 2015/12/08
- [elpa] master 98a4548 164/167: swiper.el: Bump version to 0.7.0, Oleh Krehel, 2015/12/08
- [elpa] master 84533bb 139/167: Minor fixes to ivy.org and export to ivy.texi, Oleh Krehel, 2015/12/08
- [elpa] master 17872ba 157/167: ivy.el: Structure all faces into ivy-faces custom group, Oleh Krehel, 2015/12/08
- [elpa] master 5a6217a 161/167: counsel.el (counsel-tmm): New command, Oleh Krehel, 2015/12/08
- [elpa] master e264139 166/167: doc/ivy.org: Add "Variable Index" node, Oleh Krehel, 2015/12/08
- [elpa] master c5661c0 162/167: ivy.el (ivy-completing-read): Use completing-read-default for tmm, Oleh Krehel, 2015/12/08
- [elpa] master 1992f44 165/167: doc/ivy.texi: Re-export using adjusted texinfo exporter,
Oleh Krehel <=
- [elpa] master 1f3fa31 167/167: Merge commit 'e264139e7fafbd1bbb68f9cef6d1c50b8e6cf1f3' from swiper, Oleh Krehel, 2015/12/08