I posted this question on the godot forum, but that has been overrun by bots like crazy, it’s all random characters, so probably some AI.
I want to edit the text of the current script editor without modifying the internal undo-redo of the editor.
So essentially I want this to be possible:
- User writes some code
- Program modifies it, maybe imroving the formatting and such…
- Program then reverts to previously written code
- User is able to undo their last code addition, without the programmatically inserted stuff to show up as the last undo-step.
You must log in or register to comment.
I haven’t looked into this, but in step 3 can you call the editor’s undo function?