On 2/11/2015 9:48 PM, Rustom Mody wrote:
On Thursday, February 12, 2015 at 7:57:48 AM UTC+5:30, Terry Reedy wrote:
If one saves the shell with 'save as', the filename is added to the title bar. If one does something more, the name in bracketed with *s to indicate the the memory buffer has been changed since it was last saved. This is the same as regular edit windows. However, when one quits, then, unlike a regular edit window, there is no ask-to-save warning. Is this what you want? This would seem reasonable and likely easy.
The Shell window is a subclass of the (base) Editor window. So enhancement 1, invoke ask-to-save after save-as should be easy. Find the current code (grep the message) and determine why it does not work for the shell. Saving the shell is, I believe, rare, and I believe there is half a chance that a person who has saved the shell once will want to do so again.
(I would, however, not want the prompt when the buffer has not been saved -- or this could be a configuration option.)
Enhancement 2 would be adding a configuration option to invoke ask-to-save even without save-as. I am sure that this would be harder.
Yeah thats what I want. In a file-window there is 'ask-to-save' as soon as a single character is typed. I want similar for shell window. As I said if there is a config option for that, thats best. But if I have to put in a few lines in my own idle that's fine too².
[BTW I have some other feature requests too. Is this the best forum to talk of them? And thanks for your work on idle :-) ]
Idle-sig is pretty dead, so go ahead here. You do not have to search the tracker if you do not want to. I have a categorized list of all Idle issues on the tracker (with issue numbers) and will look up ideas
against that list anyway. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list