mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Merge pull request #91388 from kitbdev/fix-goto-line
Make Goto line a Popup and column input
This commit is contained in:
commit
98c5267ce5
8 changed files with 110 additions and 53 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue