Previous: Working with the Selection, Up: Edit and View modes [Contents]
To search for text in the buffer, use the find command.
find-text
)Enter find-text mode.
The find command takes a string or regular expression, and highlights al matches. Assuming we’re sarching forwards, the first match that starts at or after the “base position” is selected, with the focus position set to the end of the match. The base position is initially the caret (focus position if defined, otherwise the output position). Each “selection-next” sets the base position to the focus position, and redoes the search.
find-next-match
)Select the next match: Sets the base position to focus position and redoes the search in forward direction. Sets the search direction to forwards: Editing the search will selection the first match after the base position.
find-previous-match
)Select the previous match. Sets the search direction to backwards: Editing the search will selection the first match before the base position.
find-toggle-match-case
)Enable or disable case-matching.
find-toggle-match-word
)Enable or disable matching of whole words (match must start and end on a word boundary).
find-toggle-match-case
)Enable or disable searching using regular expressions.
find-exit
)Exit find mode, setting the selection to the current match.
Previous: Working with the Selection, Up: Edit and View modes [Contents]