Improve "smart history" in the REPL


Hi first of all, thanks so much for this great tool. I'm a long time Matlab user, and have now decided to stop using Matlab in favor of Python inside the Visual Studio IDE. I think this is a very attractive environment for Matlab users, and you should try to target such users more.

One area which could do with some improvement in pytools is the interactive shell / debug interactive shell. Specifically, the "smart history" is very annoying to use, and also using iPython mode is a bit slow and unresponsive.

For the "smart history" behavior, it should work the same as iPython and Matlab do:

1) After navigating the command history with up and down keys, pressing escape should exit the command history view mode, and pressing up again should take us to the last entered command, not to the command before the last command we were looking at when we last navigated the history (i.e. just before pressing escape) as it currently does.

2) Partial completion should be supported. I.e. if at the start of my session I entered "x=linspace(1,10,100)" and then I entered a hundred different commands, then if I press x, then the up button I should be taken to the first command, rather than having to press up a hundred times.


Ptools wrote Aug 29, 2013 at 5:40 PM

just a note that we'll be considering these for 2.1.

PhilMacKay wrote Feb 26, 2014 at 3:28 PM

I'm voting mainly for 2) Partial completion. This saves enormous time when working in the REPL!

ambarsan wrote Jan 17, 2015 at 10:28 AM

I'm also voting for "partial completion." In bash shells, pressing Ctrl-R searches through command history and this is very useful. A feature providing "partial completion" or iPython history search (similar to Ctrl-R) would be much appreciated.

crwilcox wrote May 11 at 4:34 AM

I noticed this issue was updated. This Codeplex project isn't actively monitored by the team anymore. Please head over to our GitHub instead.