KeYProject / key

KeY Theorem Prover for Deductive Java Verification
https://key-project.org
Other
41 stars 24 forks source link

Be able to edit the source file in the main interface #3363

Open fab918 opened 9 months ago

fab918 commented 9 months ago

Please describe your proposal in a ONE sentence

One sentence describing your idea

In order to work more smoothly, it would be good to be able to edit the source file directly. An editor is already present (when loading a file), but it is not available to edit the sources.

Underlying problem

For each change in the source file, this requires opening an external editor, edit the file and save, then reloading the script and the reselecting the proof (which will create a duplicate in the proof section.)

WolframPfeifer commented 9 months ago

Thanks for the suggestion. Unfortunately, this feature is not easy to implement. At the moment, the source view on the right side shows the source code corresponding to the currently selected proof (basically a shadow copy created at the moment the proof was started). If it was possible to edit the content, then the two view would be inconsistent. It is not clear at all how the feature would look like. In addition, we would have to maintain our own editor, which is much harder to implement than "just" a read-only view of the code (you have to implement and support various edit operations, syntax highlighting during editing, ...). For these reasons, we decided to keep the view read-only at the moment.