gh-147950: Additionally bind yank-arg to M-_ in pyrepl#147949
Conversation
Just like in readline, this does exactly the same thing as M-.
|
Let's have an issue (or re-use an old one if you can find one related to such changes) and add a NEWS entry as well. It's still a user-visible change somehow though minimal and could be considered a bugfix. |
yank-argyank-arg to M-_ in pyrepl
(I'm not used to RST)
picnixz
left a comment
There was a problem hiding this comment.
I think this change is fine but for posterity can you post the link motivating this change (that is, the link to the GNU docs that does this or give an HTML page that docs please?)
|
It's mentioned in the docs for bash. |
|
Please avoid updating the branch if the CI is ok. We just need to wait for a REPL maintainer to accept that change (cc @ambv, @pablogsal) |
chris-eibl
left a comment
There was a problem hiding this comment.
I've just talked to @ambv at the EuroPython 2026 sprints and this LGTU.
Thanks @L3viathan for your contribution!
|
@chris-eibl Thanks, that's a nice goodbye present from Kraków for me :) (on a plane back home) |
(I think this is a trivial change, but if I'm mistaken I'm of course happy to create an issue for this after all.)This change just additionally binds
M-_(orMeta-Underscore, orEscape-Underscore) toyank-arg; inserting the last word of the previous line. In GNU Readline there's two bindings for this,M-.andM-_(and my muscle memory is unfortunately used to the latter).yank-argto M-_ #147950