You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Improve search/replace bar behavior
- When multiple lines are selected:
- Find: Keep previous search instead of putting those lines in the
find input.
- Replace: Focus find input instead of replace input.
- Add placeholder and tooltip for LineEdits and icon buttons.
- Disable related buttons when the operation makes no sense.
This commit is contained in:
@@ -96,9 +96,9 @@ class FindReplaceBar : public HBoxContainer {
|
||||
|
||||
void _get_search_from(int &r_line, int &r_col, bool p_is_searching_next = false);
|
||||
void _update_results_count();
|
||||
void _update_matches_label();
|
||||
void _update_matches_display();
|
||||
|
||||
void _show_search(bool p_focus_replace = false, bool p_show_only = false);
|
||||
void _show_search(bool p_with_replace, bool p_show_only);
|
||||
void _hide_bar(bool p_force_focus = false);
|
||||
|
||||
void _editor_text_changed();
|
||||
|
||||
Reference in New Issue
Block a user