godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.13k stars 92 forks source link

Text editor improvements #7385

Closed Rytelier closed 1 year ago

Rytelier commented 1 year ago

Describe the project you are working on

Code, shaders, database

Describe the problem or limitation you are having in your project

Some text editing task are becoming tedious, like quick cloning lines, renaming objects, selecting multiple items.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Text editor got good improvements over time, there's more functionality though that would help writing text based resources efficiently.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Selection:

Actions and shortcuts:

Support:

If this enhancement will not be used often, can it be worked around with a few lines of script?

Some features could be added in a plugin, some rather not, it would require research.

Is there a reason why this should be core and not an add-on in the asset library?

Text editing is tightly integrated into developing a game and it's helpful to it be as efficient as possible.

AThousandShips commented 1 year ago

Allow to place multiple cursors by alt+drag mouse.

Calinou commented 1 year ago

Add function to quickly rename object and its references. Different from search-replace as it would detect the object instead of searching for plain matching text.

Add support for config files and resources syntax highlighting and correct formatting checks.

This is being implemented by https://github.com/godotengine/godot/pull/77972. Note that ConfigFile and TSCN/TRES don't have a style guide though, as these are not expected to be modified by hand.