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/17 14:03] – [Scope] admin | editing:search:find_replace [2018/01/10 18:42] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
{{ : | {{ : | ||
- | HippoEDIT has combined Find and Replace dialog, which can be used for search and replace operations. The switch between dialog styles optimized for search or replace | + | HippoEDIT has a combined Find and Replace dialog, which can be used for search and replace operations. The switch between dialog styles |
**Find What** - in this field shall be entered text/ | **Find What** - in this field shall be entered text/ | ||
Line 9: | Line 9: | ||
**Replace With** - here placed text to replace pattern from //Find What// | **Replace With** - here placed text to replace pattern from //Find What// | ||
- | Both fields implemented using history combo boxes that remember your latest queries | + | Both fields implemented using history combo boxes that remember your last searches |
===== Scope ===== | ===== Scope ===== | ||
Line 17: | Line 17: | ||
* **Block** - search in current code block (scope/ | * **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. | * **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. | + | * **Open Documents** - search among all open files. Active if any file is open.\\ {{: |
- | * **Files** - search in files in specified directory. | + | * **Files** - search in files in specified directory.\\ {{: |
- | * **File Directory** - search in directory of current file.\\ | + | <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 // | * **Recent Files** - search among recent files. Can be checked in // | ||
* **Favorite Directories** - search in files from favorite directories. | * **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. | * **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. | + | * **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: | + | * **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). | Depending on selected scope, search dialog can be extended with additional settings specific for selected search type (scope). | ||
Line 31: | Line 31: | ||
* **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** - if set, editor performs case sensitive search. | + | * **Match Case** - if set, editor performs |
- | * **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 54: | 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. | ||
Line 63: | Line 66: | ||
===== 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.</ |