Skip to content
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

Idle: timed autosave for shell (and maybe editor) window #65351

Open
terryjreedy opened this issue Apr 4, 2014 · 4 comments
Open

Idle: timed autosave for shell (and maybe editor) window #65351

terryjreedy opened this issue Apr 4, 2014 · 4 comments
Labels
3.10 only security fixes topic-IDLE type-feature A feature request or enhancement

Comments

@terryjreedy
Copy link
Member

BPO 21152
Nosy @terryjreedy

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2014-04-04.08:13:06.343>
labels = ['expert-IDLE', 'type-feature', '3.10']
title = 'Idle: timed autosave for shell (and maybe editor) window'
updated_at = <Date 2020-06-06.16:02:22.968>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2020-06-06.16:02:22.968>
actor = 'terry.reedy'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['IDLE']
creation = <Date 2014-04-04.08:13:06.343>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 21152
keywords = []
message_count = 4.0
messages = ['215499', '238739', '259949', '259952']
nosy_count = 1.0
nosy_names = ['terry.reedy']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue21152'
versions = ['Python 3.10']

@terryjreedy
Copy link
Member Author

From bpo-21140, msg215485, Raymond Hettinger: "Students commonly save shell sessions as a record of everything they tried in call. It would nice if there were a way to trigger a periodic autosave (perhaps every five minutes or so)."

@terryjreedy terryjreedy added topic-IDLE type-feature A feature request or enhancement labels Apr 4, 2014
@terryjreedy
Copy link
Member Author

For Shell, autoappend would do the same, and saving on each >>> rather than by time might be more appropriate.

@terryjreedy
Copy link
Member Author

On idledev, Jeff Silverman requested autosave, I presume for editor windows. If one is doing closely interactive development, hitting F5 to save and run every few minutes, this would not be necessary. But if not, ... I know that autosaves in other programs (editors and games) have saved me lots of trouble more than once.

Saving every n minutes should be trivial using .after. With slightly more work, it could be every n minute the window is active (has the focus). Any untimed save should reset the timer. Since IDLE looks at every keystroke (I believe), counting keystrokes and saving every n keystrokes might be possible.

@terryjreedy
Copy link
Member Author

I list below other IDLE issues containing 'autosave', so I don't have to look at each issue for relevance to this one again.

bpo-21140 22 Idle: saving an OutputWindow should default to .txt (patch)
(Has comment prompting this issue. Otherwise not relevant.)
bpo-23666 10 Add shell session logging option to IDLE
(Related to this issue, partial duplicate)
bpo-21937 6 IDLE interactive window doesn't display unsaved indicator
(Actually, *...* indicates non-empty undo buffer.)
bpo-19042 9 Idle: add option to autosave 'Untitled' edit window
(On F5, same as for titled edit window. See 1326830.)
bpo-4765 20 IDLE fails to "Delete Custom Key Set" properly (patch)
('autosave' in quoted .idlerc/config-main.cfg)
<closed>
bpo-1175686 79 add "reload" function to IDLE
(Closed as dup, 'autosave' is about F5. Not relevant.)
bpo-1326830 125 python scratchpad (IDLE)
(Rejected. 19042 is a re-opening of this.)

@terryjreedy terryjreedy added the 3.10 only security fixes label Jun 6, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes topic-IDLE type-feature A feature request or enhancement
Projects
Status: No status
Development

No branches or pull requests

1 participant