#12503: Convenient history fetch commands
----------------------------------+-----------------------------------------
Reporter: klee | Owner: was
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-5.2
Component: user interface | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Kwankyu Lee | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by klee):
Replying to [comment:15 iandrus]:
> I tried using this a few times before but could never bind it to
Control-o so I gave up. I have an `inputrc` file and several other
customizations that I thought might be interfering, but could never figure
it out. Today I finally took the time and so I'm putting it here in case
others have the same problem. Below is what happens as best I understand
it. I'm on OS X 10.6.
Did you add the relevant lines into the "ipythonrc" as indicated in the
documentation? You don't modify `inputrc` file in your home folder.
{{{
To bind these commands with keys, insert the relevant lines into the
``$DOT_SAGE/ipython/ipythonrc``
file. Note that ``$DOT_SAGE`` is ``$HOME/.sage`` by default. For example,
::
readline_parse_and_bind "\C-o": operate-and-get-next
readline_parse_and_bind "\e[A": history-search-backward-and-save
readline_parse_and_bind "\e[B": history-search-forward-and-save
binds the three commands with the control-o key, the up arrow key, and the
down arrow key,
respectively.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12503#comment:18>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.