Creates a new IncrementalSearch
object.
Searches for all occurrances options.needle
. If found, this method returns an array of [[Range Range
s]] where the text first occurs. If options.backwards
is true
, the search goes backwards in the session.
The session to search with
Searches for options.needle
in input
, and, if found, replaces it with replacement
.
The text to search in
The replacing text
options.regExp
is true
, this function returns input
with the replacement already made. Otherwise, this function just returns replacement
.options.needle
was not found, this function returns null
.Generated using TypeDoc
Implements immediate searching while the user is typing. When incremental search is activated, keystrokes into the editor will be used for composing a search term. Immediately after every keystroke the search is updated: