[Patches] [ python-Patches-1196917 ] change recall in IDLE shell to not overwrite current command
SourceForge.net
noreply at sourceforge.net
Fri May 6 23:55:23 CEST 2005
Patches item #1196917, was opened at 2005-05-06 17:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1196917&group_id=5470
Category: IDLE
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff Shute (jshute)
Assigned to: Nobody/Anonymous (nobody)
Summary: change recall in IDLE shell to not overwrite current command
Initial Comment:
Currently, when you move the cursor over any previous
command/output and press enter, IDLE replaces the
command you are currently typing with that text. I
find this behaviour very annoying because I often end
up doing it by accident when I switch from another
window back to IDLE, and it cannot be undone, so I lose
whatever command I was building up.
This patch changes the behaviour so that instead of
replacing your current text with the text under the
cursor, the text under the cursor is inserted at the
current location, using the auto-indenter to make sure
it is put in the correct place. The operation also
becomes undoable.
This allows sequences like the following:
>>> comp1()
5.436436
>>> comp2()
3.655546
>>> print 5.436436 + 3.655546
9.091982
where I have generated the third command like this:
print [up, up, up, enter] + [up, enter][enter]
or like this:
>>> for a in set1:
for b in set2:
print a,b
...
>>> for c in set3:
for a in set1:
for b in set2:
print a,b
I generate the second command by typing the first line,
and then cursoring up to the previous command and
pressing enter. The old loop is inserted properly
indented into the new loop. (This does not work with
copy and paste.) I can then continue to edit the
combined command or press enter to run it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1196917&group_id=5470
More information about the Patches
mailing list