Merge pull request #91388 from kitbdev/fix-goto-line

Make Goto line a Popup and column input
This commit is contained in:
Thaddeus Crews 2024-12-23 11:15:12 -06:00
commit 98c5267ce5
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
8 changed files with 110 additions and 53 deletions

View file

@ -467,7 +467,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();
@ -705,8 +705,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() {