Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| editing:search:find_replace [2014/07/16 19:17] – [Search Only In] admin | editing:search:find_replace [2018/01/10 20:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| {{ : | {{ : | ||
| - | In addition to common features | + | HippoEDIT has a combined Find and Replace dialog, which can be used for search and replace |
| - | | + | **Find What** - in this field shall be entered text/ |
| + | **Replace With** - here placed text to replace pattern from //Find What// | ||
| + | |||
| + | Both fields implemented using history combo boxes that remember your last searches and can suggest your already known entries, taking into account case settings. | ||
| + | |||
| + | ===== Scope ===== | ||
| + | Scope in which search shall be done (search types). List of available scopes is dynamic and depends on current editor state and installed plugins. | ||
| + | |||
| + | * **Document** - search in current document. The cursor position is taken into account depending on //Wrap Search// flag. Only available if some document open. | ||
| + | * **Block** - search in current code block (scope/ | ||
| + | * **Selection** - search inside of selected text in current document. Only available if some document open and text selection exist. Only stream selection is taken into account. | ||
| + | * **Open Documents** - search among all open files. Active if any file is open.\\ {{: | ||
| + | * **Files** - search in files in specified directory.\\ {{: | ||
| + | <note tip>To search in multiple directories, | ||
| + | * **File Directory** - search in directory of current file.\\ {{: | ||
| + | * **Recent Files** - search among recent files. Can be checked in // | ||
| + | * **Favorite Directories** - search in files from favorite directories. | ||
| + | * **Bookmarked Lines** - search in bookmarked lines of current document. Only active if some document is open and lines are bookmarked. | ||
| + | * **FTP Site** - search on current FTP site connected. Only available if FTP plugin is installed and some site is connected.\\ {{: | ||
| + | * **Project** - search in current project. Only available if [[plugins: | ||
| + | |||
| + | Depending on selected scope, search dialog can be extended with additional settings specific for selected search type (scope). | ||
| ===== Options ===== | ===== Options ===== | ||
| - | * //Match Whole Word// - if set, only matches that surrounded by delimiters will be collected. Can not be combined with //Regular Expression Mode//. | + | * **Match Whole Word** - if set, only matches that surrounded by delimiters will be collected. Can not be combined with //Regular Expression Mode//. |
| - | * //Regular Expression// - indicates that Find What contains regular expression pattern and results in regular expression search. Can not be combined with //Match Whole Word// or //Fuzzy mode//. If //Regular Expression// | + | * **Regular Expression** - indicates that Find What contains regular expression pattern and results in regular expression search. Can not be combined with //Match Whole Word// or //Fuzzy mode//. If //Regular Expression// |
| - | * //Match case// | + | * **Match Case** |
| - | * //Fuzzy Mode// search - allows you to use approximate text search in Find dialog. Fuzziness of the algorithm can be controlled by [[options:xml: | + | * **Fuzzy Mode** search - allows you to use approximate text search in Find dialog. Fuzziness of the algorithm can be controlled by [[options:XML: |
| - | * //Search Up// - sets direction of search Up -> backward, otherwise forward. | + | * **Search Up** - sets direction of search Up -> backward, otherwise forward. |
| - | * //Wrap Search// - if enabled, editor | + | * **Wrap Search** - if enabled, editor |
| - | * //Extend Selection// - if set, editor will extend current selection till found match position (start or end of match depends on search direction). | + | * **Extend Selection** - if set, the editor will extend current selection till found match position (start or end of the match depends on search direction). |
| - | * //Search Collapsed Text// - if set, editor will search also in folded/ | + | * **Search Collapsed Text** - if set, the editor will search also in folded/ |
| - | <note tip>You can notice //Regular Expression// | + | <note tip>You can notice //Regular Expression// |
| ===== Search Only In ===== | ===== Search Only In ===== | ||
| - | This option sets //match filters// that allow you to limit search only for some specific code areas as: search only in comments, search only in code, only in strings etc. | + | This option sets //match filters// that allow you to limit search only for some specific code areas as search only in comments, search only in code, only in strings etc. |
| By default the search scope set to // | By default the search scope set to // | ||
| Line 33: | Line 54: | ||
| ===== Search Favorites ===== | ===== Search Favorites ===== | ||
| + | |||
| + | {{: | ||
| + | |||
| In addition to history combo boxes for //Find What// and //Replace With// fields, you can save current search options as Favorite. The action is available under Favorites button right side to //Find What// field. | In addition to history combo boxes for //Find What// and //Replace With// fields, you can save current search options as Favorite. The action is available under Favorites button right side to //Find What// field. | ||
| ===== Result Output ===== | ===== Result Output ===== | ||
| - | * //Find Window// - editor outputs all found matches in Search Output window. May be disabled, if Search Results plugin will be disabled in // | + | * **Find Window** - editor outputs all found matches in Search Output window. May be disabled, if [[plugins: |
| - | * //New Document// - editor outputs all found matches in new document. | + | * **New Document** - editor outputs all found matches in new document. |
| - | * //Count Only// - editor just counts matches, but do not collect them. | + | * **Count Only** - editor just counts matches, but do not collect them. |
| ===== Result Options ===== | ===== Result Options ===== | ||
| - | * //Mark Search Results in Text// - highlight all matches in document with highlight color. | + | * **Mark Search Results in Text** - highlight all matches in the document with the highlight color. |
| - | * //Bookmark Found Lines// - sets unnamed bookmarks to all lines in document, where match is found. You can operate than on bookmarked lines using dedicated command for working with bookmarks (// | + | * **Bookmark Found Lines** - sets unnamed bookmarks to all lines in the document, where a match is found. You can operate than on bookmarked lines using dedicated command for working with bookmarks (// |
| - | * //Close when Finished// - closes search dialog automatically when search is finished | + | * **Close when Finished** - closes search dialog automatically when search is finished |
| - | //Status area// on the bottom of the search dialog shows information message in-place (matches count, not found etc) in addition to displaying in main window [[view: | + | //Status area// on the bottom of the search dialog shows information message in-place (matches count, not found etc) in addition to displaying in the main window [[view: |
| - | <note tip>The best search speed can be achieved by using //Match Case// search and all other flags disabled (except | + | <note tip>The best search speed can be achieved by using //Match Case// search and all other flags disabled (except //Wrap Search// |
| - | <note tip>If you **paste** text with white space in input field in Search dialog you would be informed with warning information message in status bar.</ | + | <note tip>If you **paste** text with white space in input field in Search dialog you will be informed with a warning information message in status bar.</ |