Search and Replace - Single File¶
Searching¶
To open the search panel for buffers, press Ctrl + F. Some options and actions available through this panel can be controlled from the keyboard:
Toggle Regular Expressions | Alt + R |
Toggle Case Sensitivity | Alt + C |
Toggle Exact Match | Alt + W |
Find Next | Enter |
Find Previous | Shift + Enter |
Find All | Alt + Enter |
Incremental Search¶
The incremental search panel can be brought up with Ctrl + I. The only difference with the regular search panel lies in the behavior of the Enter` key. In incremental searches, it will select the next match in the file and dismiss the search panel for you. Choosing between this panel or the regular search panel is mainly a matter of preference.
Replacing Text¶
To open the replace planel, press Ctrl + H. Some actions available through this panel can be controlled from the keyboard.
Replace All: | Ctrl + Alt + Enter |
Replace Next: | Ctrl + Shift + H |
Tips¶
Other Ways of Searching in Files¶
Goto Anything provides the operator # to search in the current buffer.
Multiline Search¶
You can type in multiline search patterns into search panels. To enter newline characters, press Ctrl + Enter. Note that search panels are resizable.