readline - IPython's history-search-backward not working as desired -
ipython's history-search-backward
feature 1 of favorite features. history-search-backward
allows type part of command , search backward through readline history commands began part of command. default (i believe) these bound uparrow
or ctrl
+p
, downarrow
or ctrl
+n
(for backward , forward respectively).
they not working me. instead go linearly through history instead of taking account characters i've typed (allgedly) filter history.
i'm running ipython 0.13.2 (with python 2 , 3) on arch linux within xterm.
if hit escape
, ctrl
+p
, uparrow
, downarrow
work want them to.
additionally if change ipython_config.py
include
c.terminalinteractiveshell.readline_parse_and_bind = ['"\\e[b": history-search-forward', '"\\e[a": history-search-backward']
then can escape
uparrow
desired behaviour. (here's rest of config file.)
ctrl
+v
uparrow
produces ^[[a
expect. have python readline
library installed (which seems fix common problems macs running ipython).
i have these lines in .bashrc
bind '"\e[a": history-search-backward' bind '"\e[b": history-search-forward'
and work want them within bash
.
i have no idea else try next, i've come here. please help, hope i've included enough information , done enough research.
the culprit set keymap vi
set in .inputrc
. removed , ipython history went expected. @thomas k!
Comments
Post a Comment