X Tutup
Skip to content

Support keeping results in results of Find in Files and Replace in Files#104676

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
jinyangcruise:find_in_files_keep_results
Nov 11, 2025
Merged

Support keeping results in results of Find in Files and Replace in Files#104676
Repiteo merged 1 commit intogodotengine:masterfrom
jinyangcruise:find_in_files_keep_results

Conversation

@jinyangcruise
Copy link
Contributor

Closes godotengine/godot-proposals#11923

Support keeping multiple searching/replacing results.

before after
屏幕截图 2025-03-27 095822 屏幕截图 2025-03-27 100026

@jinyangcruise jinyangcruise requested a review from a team as a code owner March 27, 2025 02:09
@arkology
Copy link
Contributor

arkology commented Mar 27, 2025

I feel like all these 3 text buttons in future could be replaced with just 3 icons.
Lock/refresh/close is really common and easy recognizable actions to represent as icons.

@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch 2 times, most recently from 96bb797 to aaaafd8 Compare March 27, 2025 08:37
@AThousandShips AThousandShips added this to the 4.x milestone Mar 27, 2025
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch 2 times, most recently from 84af7d4 to 7e718a8 Compare March 28, 2025 05:40
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch from 7e718a8 to 38888c1 Compare June 11, 2025 07:25
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch from c0c5fd9 to c4178be Compare June 12, 2025 03:29
@jinyangcruise jinyangcruise requested a review from lodetrick June 12, 2025 05:28
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch from c4178be to 9685de0 Compare June 12, 2025 08:06
Copy link
Contributor

@lodetrick lodetrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond some small things, it looks good! A note for future reviewers, the artifact in the top right is fixed in a separate PR (#107395):
Screenshot 2025-06-12 at 1 19 11 AM

@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch from 9685de0 to 1c456bd Compare June 12, 2025 08:31
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch 2 times, most recently from 05407d3 to 53ddcb4 Compare June 24, 2025 06:39
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch from 53ddcb4 to 1565d54 Compare July 18, 2025 03:47
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch 2 times, most recently from e52e35d to 8793058 Compare September 19, 2025 10:43
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch 2 times, most recently from 3f00759 to 04dfd7a Compare November 3, 2025 03:14
Copy link
Contributor

@kitbdev kitbdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase to fix an unrelated crash that was fixed in master?

Find in Files needs to be refactored since there are a lot of issues like variables with _ prefix, signals, organization, etc. So I'll ignore those problems for now and I'll try to refactor this later.

Functionality works well.

@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch from 04dfd7a to 93e1bba Compare November 8, 2025 05:54
@jinyangcruise
Copy link
Contributor Author

@kitbdev I fixed the issues you have mentioned except the name FindInFilesTab which I'm thinking of a new name FindInFilesContainer but I'm not sure.

@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch from 93e1bba to adf0a9a Compare November 9, 2025 01:28
@AThousandShips AThousandShips changed the title Support keeping results in results of Find in Files and Replacing in Files Support keeping results in results of Find in Files and Replace in Files Nov 9, 2025
Copy link
Contributor

@kitbdev kitbdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@kitbdev kitbdev modified the milestones: 4.x, 4.6 Nov 9, 2025
@jinyangcruise jinyangcruise force-pushed the find_in_files_keep_results branch from adf0a9a to fdd0f32 Compare November 11, 2025 02:35
@Repiteo Repiteo merged commit b83343f into godotengine:master Nov 11, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 11, 2025

Thanks! Congratulations on your first merged contribution! 🎉

@jinyangcruise jinyangcruise deleted the find_in_files_keep_results branch November 12, 2025 01:56
Comment on lines +1270 to +1276
const Ref<StyleBox> bottom_panel_style = EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SNAME("BottomPanel"), EditorStringName(EditorStyles));
if (bottom_panel_style.is_valid()) {
add_theme_constant_override("margin_top", -bottom_panel_style->get_margin(SIDE_TOP));
add_theme_constant_override("margin_left", -bottom_panel_style->get_margin(SIDE_LEFT));
add_theme_constant_override("margin_right", -bottom_panel_style->get_margin(SIDE_RIGHT));
add_theme_constant_override("margin_bottom", -bottom_panel_style->get_margin(SIDE_BOTTOM));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary. NOTIFICATION_THEME_CHANGED already handles it, and it's received automatically when entering tree.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed. And I also find I should use begin_bulk_theme_override/end_bulk_theme_override before/after add_theme_constant_override for 4 sides margin in _notification, avoiding unnecessary recursions. I will make a PR to fix this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please review this PR? #112704

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Keep Results in results of Find in Folder

7 participants

X Tutup