Option to clear Console and Document window.
Bigalan09 opened this issue · comments
Option to clear Console and Document window on the evaluation of the code.
Perhaps add a new option in the options menu to toggle on clearing on evaluation.
Could be a menu option?
Yeah. That would work. I'm using Windows and not sure on the functionality (it could be a bug or an enhancement).
I've been just doing Ctrl+A
and then I start typing, but this could be a great first PR for someone :)
@0x00A Shall i work on this issue ??
Technically now it is not my first PR @0x00A :) How should the fix be.
The console and Document window should be cleared after execution of the code.Is that it.What should be the case if the 'Auto Evaluate' Option is checked ??
@sunilhari yeah go for it if you want :)
It seems like the state of the document window should be reset prior to evaluating the source text (every time). Leaving some state might unintended side effects in some cases. A menu item that reset all state and emptied all input would be great too.
For example:
if you type:
document.write("Test");
In the document window "Test" is written as expected.
now if you write
document.write("Hello World!");
the document window now consists of:
"Test Hello World"
Deleting the line document.write("Test");
consequently, the document window now contains:
"Test Hello World! Hello World!"
What needs to happen is the document window needs to clear on the evaluation of the code.
Thanks for the explaintation @Bigalan09 .Have raised a PR for the same.
Kindly close this issue @0x00A