godotengine / godot-proposals

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

Text Editor easy permanent Highlighting #9447

Open drippyParrot opened 6 months ago

drippyParrot commented 6 months ago

Describe the project you are working on

Irrelevant

Describe the problem or limitation you are having in your project

Event with my fairly organized and well documented coding style it can get difficult to keep full overview during additional feature implementation in larger files

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

The idea would be to have a keyboard shortcut to have the selected text highlighted or perhaps a feature like the file list in the script editor where the last used lines appear highlighted in order.

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

When you press Cmd-Shift-H on your keyboard the highlighted text will be permanetly highlighted, mybe until you press Cmd-Alt-Shift-H

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

irrelevant

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

unnecessary and ultra light weight

Calinou commented 6 months ago

Bookmarking functionality is already available in the script editor:

image

Ctrl + Alt + B toggles a bookmark on the current line.