-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added an edit magic command #942
base: main
Are you sure you want to change the base?
Conversation
Now the user can edit the code before running it. OI does not keep track of previous code (before it was edited).
@KillianLucas Can you please give an update on this. |
Hi @Eliaskhal! Thanks for updating the PR, I think a magic command is a fantastic addition to OI. From first glance I'm not sure if this would work, it looks like it appends the new code block to
I'm happy to merge once this becomes a higher priority, then make those changes. If you can make those changes @Eliaskhal, I can credit you fully for the %edit command and get it into the update coming out this weekend! Great work either way, this is seriously such an awesome feature. |
Hey @KillianLucas, thank you for your reply. I will work on adding the features you mentioned. Thank you |
Hey @Eliaskhal! Let me know if you want to move make those changes, otherwise I'm happy to take a crack at it. Great work again. |
Added
%edit
to allow the user to edit the last code submitted by OI.The code is saved in a temp file with its extension matching the language. When the user is done editing it, the code gets saved in interpreter.messages.
Pre-Submission Checklist :
docs/CONTRIBUTING.md
docs/ROADMAP.md
OS Tests :