[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-patches
Subject:    [Patches] [ python-Patches-1196917 ] change recall in IDLE shell to
From:       noreply () sourceforge ! net (SourceForge ! net)
Date:       2005-06-19 18:57:00
Message-ID: E1Dk4ya-0005sS-Bn () sc8-sf-web3 ! sourceforge ! net
[Download RAW message or body]

Patches item #1196917, was opened at 2005-05-06 16:55
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1196917&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Jeff Shute (jshute)
>Assigned to: Kurt B. Kaiser (kbk)
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.

----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2005-06-19 13:57

Message:
Logged In: YES 
user_id=149084

PyShell.py Rev 1.97
Thanks for the patch!


----------------------------------------------------------------------

Comment By: Michiel de Hoon (mdehoon)
Date: 2005-06-10 11:15

Message:
Logged In: YES 
user_id=488897

FWIW, I've tried this patch on Windows. I agree that it
makes IDLE easier to use. I'll write to python-dev in
support of this patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1196917&group_id=5470

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic