Hi Jerry,<br>
I found most of what you might need at <br>
<img src="file:///C:/DOCUME%7E1/C28320/CONFIG%7E1/TEMP/moz-screenshot.jpg" alt=""><a href="http://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC13">http://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC13
</a><br>
<br>
- ESC for clearing a line is unusual for me.<br>
- For Word Left, Word right it's Alt-b, Alt-f but you could redifine as
Ctrl-Left, Ctrl-Right I suppose, my guess is that it would be for
backward word:<br>
<pre>readline_parser_and_bind "\C\e[D": <code>backward-word</code></pre>
<pre>readline_parser_and_bind "\C\e[C": forward<code>-word</code></pre>
But I haven't tested it.<br>
- There's "yank" command and which is really a paste<br>
<br>
I'm not sure how you would change what a 'word' is, there probably is a
way but a quick look through the documentation didn't show up anything
obvious.<br>
<br>
-Scott<br><br><div><span class="gmail_quote">On 6/20/05, <b class="gmail_sendername">Jerry McRae</b> <<a href="mailto:qrs0xyc02@sneakemail.com">qrs0xyc02@sneakemail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Scott,<br><br>You <> wrote on Monday (6/20/2005 at 8:42 AM) thus about [IPython-user] readline configuration:<br>> Figured out my error: I wrote readline_parser_and_bind instead of<br>> readline_parse_and_bind.
<br>> Tried it and it works beautifully.<br>> Now it's much more like bash, perhaps these bindings should be turned on by<br>> default?<br><br>Thanks for posting. Being only a casual Linux user I was missing<br>
these key bindings and I wasn't familiar with readline. This helps a lot.<br>I did find with some trial and error the ^Z key which will undo<br>changes, that helps a lot also.<br><br>I have a couple other readline related questions that I assume are
<br>either easily answered or are not implemented. Maybe these have<br>nothing to do with IPython, I'm not sure.<br><br>1. I miss <ESC> to clear the whole line<br>2. control left and right arrows, for word movement
<br>3. is there a bash-like yank (^_) and paste (^Y) capability?<br>4. the forward and back word keys (alt-F & alt-B) stop at the<br> *delimiters*, and not the *words*. It even stops at *each*<br> delimiter. In bash and in Cygwin the backwards word stops on a
<br> *word* which is MUCH more useful. Even though the forwards word<br> keystroke stops on a word *delimiter*, it only stops on the *first*<br> delimiter after a word, not on each and every delimiter. How would<br>
I adjust this to work how I want?<br><br><br>>> > readline_parser_and_bind "\C-k": kill-line<br>>> > readline_parser_and_bind "\C-u": unix-line-discard<br><br>(Python 2.3.5, IPython
0.6.13, Windows XP)<br><br>--<br>Jerry<br>___________________________<br>A theory is no more like a fact than a photo is like a person.<br>-- Ed Howe<br><br><br></blockquote></div><br>