Skip to content

Commit

Permalink
Merge pull request #86978 from kitbdev/multicaret-overhaul
Browse files Browse the repository at this point in the history
Overhaul multicaret editing and selection in TextEdit
  • Loading branch information
akien-mga committed Apr 30, 2024
2 parents d9bf750 + 773a473 commit e19b808
Show file tree
Hide file tree
Showing 19 changed files with 8,340 additions and 3,294 deletions.
38 changes: 34 additions & 4 deletions doc/classes/CodeEdit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<return type="void" />
<param index="0" name="replace" type="bool" />
<description>
Override this method to define how the selected entry should be inserted. If [param replace] is true, any existing text should be replaced.
Override this method to define how the selected entry should be inserted. If [param replace] is [code]true[/code], any existing text should be replaced.
</description>
</method>
<method name="_filter_code_completion_candidates" qualifiers="virtual const">
Expand All @@ -29,7 +29,7 @@
<return type="void" />
<param index="0" name="force" type="bool" />
<description>
Override this method to define what happens when the user requests code completion. If [param force] is true, any checks should be bypassed.
Override this method to define what happens when the user requests code completion. If [param force] is [code]true[/code], any checks should be bypassed.
</description>
</method>
<method name="add_auto_brace_completion_pair">
Expand Down Expand Up @@ -123,7 +123,7 @@
<return type="void" />
<param index="0" name="replace" type="bool" default="false" />
<description>
Inserts the selected entry into the text. If [param replace] is true, any existing text is replaced rather than merged.
Inserts the selected entry into the text. If [param replace] is [code]true[/code], any existing text is replaced rather than merged.
</description>
</method>
<method name="convert_indent">
Expand All @@ -144,6 +144,12 @@
Code regions are delimited using start and end tags (respectively [code]region[/code] and [code]endregion[/code] by default) preceded by one line comment delimiter. (eg. [code]#region[/code] and [code]#endregion[/code])
</description>
</method>
<method name="delete_lines">
<return type="void" />
<description>
Deletes all lines that are selected or have a caret on them.
</description>
</method>
<method name="do_indent">
<return type="void" />
<description>
Expand All @@ -156,6 +162,12 @@
Duplicates all lines currently selected with any caret. Duplicates the entire line beneath the current one no matter where the caret is within the line.
</description>
</method>
<method name="duplicate_selection">
<return type="void" />
<description>
Duplicates all selected text and duplicates all lines with a caret on them.
</description>
</method>
<method name="fold_all_lines">
<return type="void" />
<description>
Expand Down Expand Up @@ -379,6 +391,18 @@
Returns whether the line at the specified index is folded or not.
</description>
</method>
<method name="move_lines_down">
<return type="void" />
<description>
Moves all lines down that are selected or have a caret on them.
</description>
</method>
<method name="move_lines_up">
<return type="void" />
<description>
Moves all lines up that are selected or have a caret on them.
</description>
</method>
<method name="remove_comment_delimiter">
<return type="void" />
<param index="0" name="start_key" type="String" />
Expand All @@ -397,7 +421,7 @@
<return type="void" />
<param index="0" name="force" type="bool" default="false" />
<description>
Emits [signal code_completion_requested], if [param force] is true will bypass all checks. Otherwise will check that the caret is in a word or in front of a prefix. Will ignore the request if all current options are of type file path, node path or signal.
Emits [signal code_completion_requested], if [param force] is [code]true[/code] will bypass all checks. Otherwise will check that the caret is in a word or in front of a prefix. Will ignore the request if all current options are of type file path, node path, or signal.
</description>
</method>
<method name="set_code_completion_selected_index">
Expand Down Expand Up @@ -467,6 +491,12 @@
Toggle the folding of the code block at the given line.
</description>
</method>
<method name="toggle_foldable_lines_at_carets">
<return type="void" />
<description>
Toggle the folding of the code block on all lines with a caret on them.
</description>
</method>
<method name="unfold_all_lines">
<return type="void" />
<description>
Expand Down
198 changes: 170 additions & 28 deletions doc/classes/TextEdit.xml

Large diffs are not rendered by default.

Loading

0 comments on commit e19b808

Please sign in to comment.