Hi comp.lang.python:
New to the group and new to python, so don't tear me up too much ...
I installed the GNU readline support in python2.4, and it is working,
but there is one annoying behaviour that I am hoping to squash ...
Namely, when I hit <esc> to go to edit mode, then hit 'k' to go up in
the command history,
the prompt is put at the start of the line.
Other places I use vi mode command line editing (e.g., zsh), the
cursor is at the end of the previous command.
More often than not, I am wanting to edit the latter part of the
previous command, not the start.
Is there any way to tell readline to put the cursor at the end of the
command line when browsing them?
Thx for any light you can shinte,
Tim 4 2884
On Nov 16, tn****@gmail.com wrote: Hi comp.lang.python: New to the group and new to python, so don't tear me up too much ... I installed the GNU readline support in python2.4, and it is working, but there is one annoying behaviour that I am hoping to squash ...
Namely, when I hit <esc> to go to edit mode, then hit 'k' to go up in the command history, the prompt is put at the start of the line.
Amazing that you brought this up right now; I was just thinking about
whether or not to bother posting my own annoyance (invisible last
history command) with readline 4.3-5 (default with Fedora Core 3) and
Python 2.4.2. Since you brought it up, here's my test case:
My ~/.inputrc simply contains "set editing-mode vi". When I start
python I type "print 'a'". Then "<Esc>k" to recall the last
command -- but the line is invisible! If I start editing the
blank/invisible line the text magically appears. Or if I press
"k" twice I have visible history again. So now I have in muscle
memory "<Esc>kkj" to get my last command :-(
This is not a problem on the same machine with older versions of python
that are installed. Is this worth filing a bug against python? I
didn't find anything reported on sf.net/projects/python.
Other places I use vi mode command line editing (e.g., zsh), the cursor is at the end of the previous command. More often than not, I am wanting to edit the latter part of the previous command, not the start.
In bash "<Esc>k" puts me at the *beginning* of the line. Of course $
puts you where you want to be then, but I'm not sure how to affect the
behavior you're asking for; "help bind" might be useful, and "bind -P"
shows some mappings.
--
_ _ ___
|V|icah |- lliott <>< md*@micah.elliott.name
" " """
On Nov 16, tn****@gmail.com wrote: Hi comp.lang.python: New to the group and new to python, so don't tear me up too much ... I installed the GNU readline support in python2.4, and it is working, but there is one annoying behaviour that I am hoping to squash ...
Namely, when I hit <esc> to go to edit mode, then hit 'k' to go up in the command history, the prompt is put at the start of the line.
Amazing that you brought this up right now; I was just thinking about
whether or not to bother posting my own annoyance (invisible last
history command) with readline 4.3-5 (default with Fedora Core 3) and
Python 2.4.2. Since you brought it up, here's my test case:
My ~/.inputrc simply contains "set editing-mode vi". When I start
python I type "print 'a'". Then "<Esc>k" to recall the last
command -- but the line is invisible! If I start editing the
blank/invisible line the text magically appears. Or if I press
"k" twice I have visible history again. So now I have in muscle
memory "<Esc>kkj" to get my last command :-(
This is not a problem on the same machine with older versions of python
that are installed. Is this worth filing a bug against python? I
didn't find anything reported on sf.net/projects/python.
Other places I use vi mode command line editing (e.g., zsh), the cursor is at the end of the previous command. More often than not, I am wanting to edit the latter part of the previous command, not the start.
In bash "<Esc>k" puts me at the *beginning* of the line. Of course $
puts you where you want to be then, but I'm not sure how to affect the
behavior you're asking for; "help bind" might be useful, and "bind -P"
shows some mappings.
--
_ _ ___
|V|icah |- lliott <>< md*@micah.elliott.name
" " """ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tom Locke |
last post by:
Hi All,
I'm having trouble with the python shell within emacs. It's hanging when I
use tkinter. Setup is:
Windows XP
emacs 21.3
py-mode 4.6
Recipe:
|
by: Pedro Werneck |
last post by:
Hi,
I don't know if I should ask this here or on an emacs group/list. If I choose wrong, please forgive me.
I am trying to run pychecker on the current buffer on python-mode using the...
|
by: Brano Zarnovican |
last post by:
Hi !
I'd like to init curses and still have working Python interactive
command line. I found that you can replace stdin/stdout/stderr
like this:
#!/usr/bin/python -i
import curses
import...
|
by: tnoell |
last post by:
Hi comp.lang.python:
New to the group and new to python, so don't tear me up too much ...
I installed the GNU readline support in python2.4, and it is working,
but there is one annoying behaviour...
|
by: Pankaj |
last post by:
I am facing a very basic problem as any new bie would face.
I know perl and now i want to use python
In perl, it is very simple , just
"perl scriptname.pl"
will execute the script.
But i...
|
by: dmh2000 |
last post by:
I am experimenting with the interactive interpreter environments of
Python and Ruby and I ran into what seems to be a fundamental
difference. However I may be doing something wrong in Python....
|
by: Berend van Berkum |
last post by:
Hi all,
I'm looking at building an interactive session in front of some
rdfobj instances. I've used cmd and just found code.Interactive*.
Protocol doesn't matter, I'm looking at the UI...
|
by: Michele Simionato |
last post by:
I have noticed that the python-mode for Emacs that comes with the
latest Ubuntu is missing the class browser. Moreover if works
differently from the python-mode I was used to (for instance CTRL-c-c...
|
by: mmm |
last post by:
I am looking for advice on Python Editors and IDEs
I have read other posts and threads on the subject and my two
questions at this time are mainly about the IDLE-like F5-run
facilities. While I...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |