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: better management of Shell window output #66209

Open
terryjreedy opened this issue Jul 19, 2014 · 2 comments
Open

Idle: better management of Shell window output #66209

terryjreedy opened this issue Jul 19, 2014 · 2 comments
Assignees
Labels
3.10 only security fixes topic-IDLE type-feature A feature request or enhancement

Comments

@terryjreedy
Copy link
Member

BPO 22010
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 = 'https://github.com/terryjreedy'
closed_at = None
created_at = <Date 2014-07-19.01:16:49.821>
labels = ['expert-IDLE', 'type-feature', '3.10']
title = 'Idle: better management of Shell window output'
updated_at = <Date 2020-06-06.23:30:25.134>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2020-06-06.23:30:25.134>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = False
closed_date = None
closer = None
components = ['IDLE']
creation = <Date 2014-07-19.01:16:49.821>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 22010
keywords = []
message_count = 2.0
messages = ['223454', '370861']
nosy_count = 1.0
nosy_names = ['terry.reedy']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'test needed'
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue22010'
versions = ['Python 3.10']

@terryjreedy
Copy link
Member Author

Some of these ideas are in other issues, but possibly as side-thoughts. Any issues that directly address one of them can be added as dependency.

The appropriate place for menu entries would be the Shell menu, which currently has only 2, 1 of which I have never used. I don't necessarily think everything needs a key shortcut. There are already too many for me to remember.

  1. Clear/restart shell. The same as restart, but also clear after. If the shell is burdened with unwanted lines of text, let someone start over without quitting and restarting.

  2. Move last output to output window. Long help output, as for classes, would be a prime example use. I am sure this idea has been mentioned, at least as a side note.

  3. Delete last output. In the editor and while editing a statement, Undo undoes the effect of one or more of the last keypresses. I propose that in the shell, after <enter> submits a statement for processing, prints the output, and a new prompt, that Undo ^Z erase the new prompt, erase the output, and put the cursor at the end of the previously entered statement so it can be edited. (Idea prompted by Rick Johnson.)

One use case for this is to correct syntax and logic errors, especially when one is using Idle to prepare examples to copy and paste elsewhere. I do this constantly and manually filtering out bad input and output is a major nuisance. Another use case to simply delete unwanted output, especially if long. In the latter case, one would not want the new prompt deleted, but ^Z can only act one way, and I don't think we need two new commands.

  1. We need one or more custom cut methods, as proposed in bpo-11838 "make interactive code savable as a runnable script". Such issues will depend on how we replace tabs in bpo-7676.

@terryjreedy terryjreedy self-assigned this Jul 19, 2014
@terryjreedy terryjreedy added the type-feature A feature request or enhancement label Jul 19, 2014
@terryjreedy
Copy link
Member Author

1 is a another issue. 2. was partly taken care of by squeezer.
3 is needed. SyntaxError is often best handled by editing.
4 is still needed. Tab replacement will happen with a sidebar.

@terryjreedy terryjreedy added 3.10 only security fixes and removed 3.7 (EOL) end of life labels 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