Difference between revisions of "Incremental Search"

From WikEmacs
Jump to navigation Jump to search
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The principal search command in Emacs is incremental: it begins searching as soon as you type the first character of the search string. As you type in the search string, Emacs shows you where the string (as you have typed it so far) would be found. When you have typed enough characters to identify the place you want, you can stop. Depending on what you plan to do next, you may or may not need to terminate the search explicitly with <RET>.
+
{{Package
 +
|name=isearch
 +
|description=visualizes white spaces in the buffer
 +
|source=http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/isearch.el
 +
|maintainer=[[FSF]]
 +
|in_emacs=yes
 +
|Development status=active
 +
}}
  
* C-s Incremental search forward (isearch-forward).  
+
The principal search command in Emacs is '''incremental'''. It begins
* C-r Incremental search backward (isearch-backward)
+
searching as soon as you type the first character of the search
 +
string. As you type in the search string, Emacs shows you where the
 +
string (as you have typed it so far) would be found. When you have
 +
typed enough characters to identify the place you want, you can stop.
 +
Depending on what you plan to do next, you may or may not need to
 +
terminate the search explicitly with {{Keys|RET}}, this allows user to
 +
navigate by doing incremental search.
 +
 
 +
 
 +
== Usage ==
 +
* {{CommandKeys|C-s|isearch-forward}} Incremental search forward.  
 +
* {{CommandKeys|C-r|isearch-backward}} Incremental search backward.
 +
 
 +
== See also ==
 +
 
 +
To find text in a buffer, see also:
 +
 
 +
* grep
 +
* occur ({{Command|occur}})
 +
* [[helm-swoop]]
 +
 
 +
[[Category:Search]]
 +
[[Category:Built-in Package]]
 +
[[Category:Navigation]]
 +
[[Category:Editing]]
 +
[[Category:Buffer Navigation]]

Latest revision as of 09:10, 25 July 2017

isearch
Description visualizes white spaces in the buffer
Author name of author
Maintainer FSF
Source http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/isearch.el
Part of Emacs yes

The principal search command in Emacs is incremental. It begins searching as soon as you type the first character of the search string. As you type in the search string, Emacs shows you where the string (as you have typed it so far) would be found. When you have typed enough characters to identify the place you want, you can stop. Depending on what you plan to do next, you may or may not need to terminate the search explicitly with [RET], this allows user to navigate by doing incremental search.


Usage

  • [C-s] (or M-x isearch-forward) Incremental search forward.
  • [C-r] (or M-x isearch-backward) Incremental search backward.

See also

To find text in a buffer, see also: