1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Make Goto line a Popup and allow column input

This commit is contained in:
kit
2024-02-22 15:32:12 -05:00
parent e25776e95c
commit f41cd8ad52
8 changed files with 110 additions and 53 deletions

View File

@@ -468,7 +468,7 @@ void TextEditor::_edit_option(int p_op) {
emit_signal(SNAME("replace_in_files_requested"), selected_text);
} break;
case SEARCH_GOTO_LINE: {
goto_line_dialog->popup_find_line(tx);
goto_line_popup->popup_find_line(code_editor);
} break;
case BOOKMARK_TOGGLE: {
code_editor->toggle_bookmark();
@@ -706,8 +706,8 @@ TextEditor::TextEditor() {
bookmarks_menu->connect("about_to_popup", callable_mp(this, &TextEditor::_update_bookmark_list));
bookmarks_menu->connect("index_pressed", callable_mp(this, &TextEditor::_bookmark_item_pressed));
goto_line_dialog = memnew(GotoLineDialog);
add_child(goto_line_dialog);
goto_line_popup = memnew(GotoLinePopup);
add_child(goto_line_popup);
}
TextEditor::~TextEditor() {