Skip to content

Conversation

@rayw000
Copy link
Contributor

@rayw000rayw000 commented Dec 23, 2021

  1. New features yank and yank pop
  2. Unit tests for the new features
  3. Document the new features

Fixes: #41252

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. readline Issues and PRs related to the built-in readline module. labels Dec 23, 2021
@jasnell
Copy link
Member

+1 to adding this. Needs tests and doc updates also tho

@jasnelljasnell added the semver-minor PRs that contain new features and should be released in the next minor version. label Dec 23, 2021
@rayw000
Copy link
ContributorAuthor

+1 to adding this. Needs tests and doc updates also tho

No problem. I'll update tomorrow.

@rayw000rayw000 changed the title repl: add feature yank and yank popreadline: add feature yank and yank popDec 24, 2021
@rayw000rayw000 requested a review from jasnellDecember 24, 2021 04:25
@rayw000rayw000 changed the title readline: add feature yank and yank popreadline: add features yank and yank popDec 24, 2021
@rayw000
Copy link
ContributorAuthor

This PR and #41392 are conflicting. Once one of them is accepted, I'll update the other.

@Ayase-252Ayase-252 added the blocked PRs that are blocked by other issues or PRs. label Jan 21, 2022
@Ayase-252
Copy link
Member

Blocked on #41392

@Ayase-252Ayase-252 removed the blocked PRs that are blocked by other issues or PRs. label Jan 21, 2022
@Ayase-252
Copy link
Member

#41392 was merged. Unblocked

1. `Ctrl-Y` to yank previously deleted text 2. `Meta-Y` to do yank pop (cycle among deleted texts) 3. Use `getCursorPos().rows` to check if we have reached a new line, instead of `getCursorPos().cols === 0`. 4. document and unittests.
@Ayase-252Ayase-252 added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 21, 2022
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 21, 2022
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@Ayase-252Ayase-252 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Jan 22, 2022
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 22, 2022
@nodejs-github-botnodejs-github-bot merged commit 2f17004 into nodejs:masterJan 22, 2022
@nodejs-github-bot
Copy link
Collaborator

Landed in 2f17004

@rayw000rayw000 deleted the feature-yank branch January 22, 2022 10:57
BethGriggs pushed a commit that referenced this pull request Jan 25, 2022
1. `Ctrl-Y` to yank previously deleted text 2. `Meta-Y` to do yank pop (cycle among deleted texts) 3. Use `getCursorPos().rows` to check if we have reached a new line, instead of `getCursorPos().cols === 0`. 4. document and unittests. PR-URL: #41301Fixes: #41252 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
Linkgoron pushed a commit to Linkgoron/node that referenced this pull request Jan 31, 2022
1. `Ctrl-Y` to yank previously deleted text 2. `Meta-Y` to do yank pop (cycle among deleted texts) 3. Use `getCursorPos().rows` to check if we have reached a new line, instead of `getCursorPos().cols === 0`. 4. document and unittests. PR-URL: nodejs#41301Fixes: nodejs#41252 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
@ruyadornoruyadorno mentioned this pull request Feb 8, 2022
@danielleadams
Copy link
Contributor

@rayw000 do you mind backporting this to v16.x? When landing the PR, it breaks tests.

@rayw000
Copy link
ContributorAuthor

@rayw000 do you mind backporting this to v16.x? When landing the PR, it breaks tests.

Hi @danielleadams

This PR relies on #37947, which is similar to #41392. It may not be appropriate to backport #37947 since it is a semver major change.

@danielleadams
Copy link
Contributor

danielleadams commented Apr 11, 2022

@rayw000 no problem - I'll mark as don't-land-to-v16.x. Thank you!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.readlineIssues and PRs related to the built-in readline module.semver-minorPRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only Ctrl-Y yank doesn't work in REPL

6 participants

@rayw000@jasnell@Ayase-252@nodejs-github-bot@danielleadams@VoltrexKeyva