[IPython-dev] previous line gives strange results
Fernando Perez
Fernando.Perez at colorado.edu
Sun Mar 12 04:22:01 EST 2006
Stefan van der Walt wrote:
> On Thu, Feb 16, 2006 at 08:04:55AM +0200, Ville Vainio wrote:
>
>>On 2/16/06, Stefan van der Walt <stefan at sun.ac.za> wrote:
>>
>>
>>>I am used to pressing "Alt-P" (from Emacs) in ipython to get the
>>>previous line. However, with my current version (0.7.2.svn), Alt-P
>>>causes havoc.
>>
>>Do you mean ctrl+p?
>
>
> No, I mean Alt-p (causes the bug), while ctrl-P (but not ctrl-p) does
> what I want.
Mmh, Ctrl-p should do what you want, since the default config executes:
readline_parse_and_bind "\C-p": history-search-backward
readline_parse_and_bind "\C-n": history-search-forward
You can also get Alt-p (at least I can on this ubuntu laptop) to do the same
by adding to your ipythonrc file these two lines:
readline_parse_and_bind "\M-p": history-search-backward
readline_parse_and_bind "\M-n": history-search-forward
Let me know how it goes (and sorry for the super-delayed reply!)
Cheers,
f
More information about the IPython-dev
mailing list