[issue41075] Add support of navigating through prev. commands in IDLE

2020-06-22 Thread E. Paine

E. Paine  added the comment:

The issue I found, which I assume you are referencing Terry, is #2704. Even if 
we don't do all of what is proposed there, I think the default bindings for the 
history should be changed (I have not used any terminals that don't use ↑↓).

In my experience, very few people know of the history functionality (especially 
people new to Python - which is IDLE's main audience) and even many of those 
who teach Python don't know about it!

As for the other features suggested, I am not sure about a "previous input" 
option in the right-click menu, though it may be nice to have a separate 
history for commands and inputs (I didn't look that closely at 2704 so it is 
possible this is proposed there). I am not sure I understand the feature 
proposed in '3'.

--
nosy: +epaine

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41075] Add support of navigating through prev. commands in IDLE

2020-06-22 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

There is an old issue proposing making ↑↓ navigate through history in Shell, 
with cntl/alt ↑↓, for instance, navigating through lines.  


In the meanwhile, one is supposed to be able to redefine the abstract 
 and  keys in the Keys tab of the settings 
dialog.  For instance, to Alt-Down and Alt-Up.  However, it is not currently 
working as I expect and I need to investigate more.

A new history list mechanism is a possibility, but I would want to first change 
Shell to only add syntactically correct entries to the permanent list.  One 
should be able to edit a statement until it is correct, just as when trying to 
run from the editor.  This would reduce the need to retrieve history by perhaps 
half (depending on one's syntax knowledge and typing accuracy).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41075] Add support of navigating through prev. commands in IDLE

2020-06-22 Thread wyz23x2

New submission from wyz23x2 :

Terminals like CMD have support of navigating through commands with ↑↓. While 
directly implementing the arrows is not good in IDLE (the use for jumping to 
the prev. line in GUI is needed), there should be a good way.
Some ways:
1. Alt+↑↓. The current behavior is exactly like ↑↓.
2. A "Previous input" option in the right-click menu.
3. A "Navigate" option in the right-click menu. A GUI like this will pop up:
——
┃Navigate┃
┃  × The [4]th command   ┃
┃  O [1] command before  ┃
┃___ ┃
┃┃Paste┃ ┃
┃——— ┃
——

It would be better if 2&3 are together.

--
assignee: terry.reedy
components: IDLE
messages: 372085
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: Add support of navigating through prev. commands in IDLE
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com