Skip to content

readline: make tab size configurable - #31318

Closed
BridgeAR wants to merge 1 commit into
nodejs:masterfrom
BridgeAR:2020-01-11-readline-make-tab-size-configurable
Closed

readline: make tab size configurable#31318
BridgeAR wants to merge 1 commit into
nodejs:masterfrom
BridgeAR:2020-01-11-readline-make-tab-size-configurable

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

This adds the tabSize option to readline to allow different tab
sizes. It also cleans up some code and unifies the linebreak RegExp.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the readline Issues and PRs related to the built-in readline module. label Jan 11, 2020
@BridgeARBridgeAR added the semver-minor PRs that contain new features and should be released in the next minor version. label Jan 11, 2020
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@bnoordhuisbnoordhuis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The historySize changes should be a separate commit and arguably a separate PR because it's unrelated.

Comment threadlib/readline.js Outdated
@nodejs-github-bot

This comment has been minimized.

@BridgeAR
BridgeARforce-pushed the 2020-01-11-readline-make-tab-size-configurable branch from 60f32a5 to 77effd2CompareJanuary 12, 2020 20:14
@BridgeAR

Copy link
Copy Markdown
MemberAuthor

@bnoordhuis I removed the refactoring.

@BridgeAR
BridgeARforce-pushed the 2020-01-11-readline-make-tab-size-configurable branch from 77effd2 to 5f1947dCompareJanuary 12, 2020 21:04
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

nodejs-github-bot commented Jan 12, 2020

Copy link
Copy Markdown
Collaborator

@BridgeAR

Copy link
Copy Markdown
MemberAuthor

@nodejs/readline @nodejs/repl PTAL (this is the basis to add the same option to the repl).

Comment threadtest/parallel/test-readline-interface.js Outdated
@Trott

Copy link
Copy Markdown
Member

Not opposed to this, but curious what the motivation is. Is this something you've needed but didn't have? Is it something someone has asked for?

@BridgeAR

BridgeAR commented Jan 14, 2020

Copy link
Copy Markdown
MemberAuthor

@Trott neither. The reason is that it's possible to change the tab size in terminals.

@BridgeAR

Copy link
Copy Markdown
MemberAuthor

@nodejs/repl @nodejs/readline this could use some reviews.

@mcollinamcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if this did not edit existings tests as well, it makes the review harder.

@BridgeAR

Copy link
Copy Markdown
MemberAuthor

I updated the tests to be independent but I want to note that we just copy 95% of the test code all the time.

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 20, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadlib/readline.js Outdated
@BridgeAR
BridgeARforce-pushed the 2020-01-11-readline-make-tab-size-configurable branch from d7eddc1 to 0b9ec1dCompareJanuary 22, 2020 14:58
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@addaleaxaddaleax removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 5, 2020

@addaleaxaddaleax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a rebase

@BridgeAR
BridgeARforce-pushed the 2020-01-11-readline-make-tab-size-configurable branch from 0b9ec1d to 27983d4CompareFebruary 6, 2020 19:46
This adds the `tabSize` option to readline to allow different tab
sizes.
@BridgeAR
BridgeARforce-pushed the 2020-01-11-readline-make-tab-size-configurable branch from 27983d4 to c7571e2CompareFebruary 6, 2020 19:48
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

addaleax pushed a commit that referenced this pull request Feb 7, 2020
This adds the `tabSize` option to readline to allow different tab
sizes.
PR-URL: #31318
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@addaleax

Copy link
Copy Markdown
Member

Landed in f9a27ea

@addaleaxaddaleax closed this Feb 7, 2020
codebytere pushed a commit that referenced this pull request Feb 17, 2020
This adds the `tabSize` option to readline to allow different tab
sizes.
PR-URL: #31318
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@codebyterecodebytere mentioned this pull request Feb 17, 2020
codebytere added a commit that referenced this pull request Feb 18, 2020
Notable changes:
* async_hooks
* add executionAsyncResource (Matteo Collina) #30959
* crypto
* add crypto.diffieHellman (Tobias Nießen) #31178
* add DH support to generateKeyPair (Tobias Nießen) #31178
* simplify DH groups (Tobias Nießen) #31178
* add key type 'dh' (Tobias Nießen) #31178
* test
* skip keygen tests on arm systems (Tobias Nießen) #31178
* perf_hooks
* add property flags to GCPerformanceEntry (Kirill Fomichev) #29547
* process
* report ArrayBuffer memory in `memoryUsage()` (Anna Henningsen) #31550
* readline
* make tab size configurable (Ruben Bridgewater) #31318
* report
* add support for Workers (Anna Henningsen) #31386
* worker
* add ability to take heap snapshot from parent thread (Anna Henningsen) #31569
* added new collaborators
* add ronag to collaborators (Robert Nagy) #31498
PR-URL: #31837
codebytere added a commit that referenced this pull request Feb 18, 2020
Notable changes:
* async_hooks
* add executionAsyncResource (Matteo Collina) #30959
* crypto
* add crypto.diffieHellman (Tobias Nießen) #31178
* add DH support to generateKeyPair (Tobias Nießen) #31178
* simplify DH groups (Tobias Nießen) #31178
* add key type 'dh' (Tobias Nießen) #31178
* test
* skip keygen tests on arm systems (Tobias Nießen) #31178
* perf_hooks
* add property flags to GCPerformanceEntry (Kirill Fomichev) #29547
* process
* report ArrayBuffer memory in `memoryUsage()` (Anna Henningsen) #31550
* readline
* make tab size configurable (Ruben Bridgewater) #31318
* report
* add support for Workers (Anna Henningsen) #31386
* worker
* add ability to take heap snapshot from parent thread (Anna Henningsen) #31569
* added new collaborators
* add ronag to collaborators (Robert Nagy) #31498
PR-URL: #31837
@targostargos mentioned this pull request Apr 18, 2020
2 tasks
@targos

Copy link
Copy Markdown
Member

Depends on #31423 to land on v12.x

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

Labels

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.

10 participants

@BridgeAR@nodejs-github-bot@Trott@addaleax@targos@mcollina@bnoordhuis@jasnell@antsmartian@lundibundi