This commit is contained in:
Basile Burg 2017-03-09 10:40:33 +01:00
parent 0342a728d4
commit 1303570211
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
4 changed files with 26 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
docs/img/search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -9,7 +9,7 @@ title: Widgets - project groups
#### Description
Project groups allow to work with several projects. It's easier to activate one, to recompile it and to go back to another one.
A group can include any project whose the format is handled by Coedit (Dub JSON, Sub SDL and CE formats).
A group can include any project whose the format is handled by Coedit (Dub JSON, Dub SDL and CE formats).
Another interesting feature is that the groups can be build by a single click, in parallel, sequentially or using wait points which are defined for each item in the group. When working with static libraries, this system allows faster builds.

View File

@ -1,3 +1,28 @@
---
title: Widgets - search and replace
---
The _find and replace_ widget allows to find and replace text patterns in the focused source editor.
![](img/search.png)
- **first field**: The pattern to find.
- **second field**: The pattern used as replacement, only active when **"replace with"** is checked.
- **whole word**: Only searches for the whole pattern.
- **backward**: Searches from the current position to the top.
- **from cursor**: When not checked the operation always starts from the top of the document.
- **case sensitive**: When unchecked the characters case is ignored.
- **prompt**: A confirmation is required to replace a match.
- **allow regex**: When checked, the search is performed by a regex engine. Note that it doesn't mean that the pattern to find has to be a regex).
By default <kbd>CTRL</kbd> + <kbd>F</kbd> is used to pass the current identifier to the first field and <kbd>F3</kbd> to execute a search.
The _Find all_ results are displayed in the [messages widget](widgets_messages), with the context and they can be clicked.
![](img/find_all_results.png)
The scope of _Find all_ can be set either to the current editor or to the whole project by clicking the icon at the right.
Notes:
- To find the declaration of a symbol, <kbd>Ctrl</kbd> + <kbd>MB Left</kbd> or the [symbol list](widgets_symbol_list) are faster.
- To rename a variable or a type, local identifier renaming (<kbd>Ctrl</kbd> + <kbd>F2</kbd>) can be more accurate than _Replace all_ since the action uses the semantic.