master-key.search
Moves cursor (and possibly the selection) to matching string (or regex).
Arguments
text
: The text to search for; if left blank, search string is requested from useracceptAfter
(optional): If specified, limits the number of characters required from the user to the given number.backwards
(default=false): Whether to search forward (default) or backwards from cursor positioncaseSensitive
(default=false): Whether the search-string matching is sensitive to the case of letters.regex
(default=false): If true the provided search text will be interpreted as a regular expressionwrapAround
: (default=false): If true search will wrap back to the top of the file when hitting the end of the file, and back to the bottom when hitting the top.selectTillMatch
(default=false): If true, all text from the current cursor position up until the searched-to position will be highlighted.highlightMatches
(default=true): If true search-string matches visible in the editor will be highlighted.offset
(default='exclusive'): determines where the cursor will land with respect to the search match. The possible values are:inclusive
: when search is moving forward the cursor will land right before the first character and otherwise it will land right after the last characterexclusive
: like inclusive` except the cursor lands directly on the target character rather than to one side or the otherstart
: cursor will land on the first character of the matchend
: cursor will land on the last character of the match
register
(default="default"): Determine what storage register repeated search commands (nextMatch
/previousMatch
) use. If you have multiple search commands you can use registers to avoid the two commands using the same search state.skip
(default=0): the number of matches to skip before stopping.