You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way that the confirmation models are made, this isn't possible (as far as I can see):
Here's the snippet of code that strictly deals with the confirmations for closing:
classConfirmClose(app.controller.Controller):
"""Ask about closing a file with unsaved changes."""def__init__(self, view):
app.controller.Controller.__init__(self, view, 'confirmClose')
defsetTextBuffer(self, textBuffer):
app.controller.Controller.setTextBuffer(self, textBuffer)
commandSet=initCommandSet(self, textBuffer)
commandSet.update({
ord('n'): self.closeFile,
ord('N'): self.closeFile,
ord('y'): self.saveOrChangeToSaveAs,
ord('Y'): self.saveOrChangeToSaveAs,
})
self.commandSet=commandSetself.commandDefault=self.confirmationPromptFinish
As you can see, it's looking for only n, N, y, or Y and this is the same for many other parts of the program, so adding a confirmation model would require a rewrite of all this, albeit still possible.
Note: This is a possible suggestion.
Suggestion: It can wait for user to hit enter after writing the command, gives a bit more subtlety.
The text was updated successfully, but these errors were encountered: