Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move indentation into CodeEdit #49665

Merged
merged 1 commit into from
Jun 21, 2021
Merged

Conversation

Paulb23
Copy link
Member

@Paulb23 Paulb23 commented Jun 16, 2021

Continuation of #31739

Builds on top of #49238


The main aim of this PR is abstracting out indentation into CodeEdit. It's now entirely exposed to the API.

As part of the refactor backspace_at_cursor has become backspace. It has been exposed and made overridable. This will be the way forward for other such actions like cut, copy and paste.

Indent size in TextEdit is now called tab size as it no longer relates to spaces.

A couple extra utility methods have also be made pubic for use.

Will start to move more functionality in, such as indent type conversion that currently sits within code_editor when the TextEdit split is complete.

@Paulb23 Paulb23 added this to the 4.0 milestone Jun 16, 2021
@Paulb23 Paulb23 requested review from a team as code owners June 16, 2021 17:59
@Paulb23 Paulb23 force-pushed the code_edit_indent branch 3 times, most recently from 1bda034 to bd317e0 Compare June 18, 2021 18:09
@Paulb23 Paulb23 force-pushed the code_edit_indent branch from bd317e0 to 1a0cfc2 Compare June 20, 2021 19:01
@akien-mga akien-mga merged commit 9da7f06 into godotengine:master Jun 21, 2021
@akien-mga
Copy link
Member

Thanks!

@Paulb23 Paulb23 deleted the code_edit_indent branch June 21, 2021 17:26
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.

3 participants