gh-147950: Additionally bind yank-arg to M-_ in pyrepl#147949
Open
L3viathan wants to merge 4 commits intopython:mainfrom
Open
gh-147950: Additionally bind yank-arg to M-_ in pyrepl#147949L3viathan wants to merge 4 commits intopython:mainfrom
yank-arg to M-_ in pyrepl#147949L3viathan wants to merge 4 commits intopython:mainfrom
Conversation
Just like in readline, this does exactly the same thing as M-.
Member
|
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
picnixz
reviewed
Mar 31, 2026
Misc/NEWS.d/next/Library/2026-03-31-21-25-44.gh-issue-147950.5JR0sK.rst
Outdated
Show resolved
Hide resolved
(I'm not used to RST)
picnixz
approved these changes
Mar 31, 2026
Member
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?)
Contributor
Author
|
It's mentioned in the docs for bash. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(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