readline: make tab size configurable#31318
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bnoordhuis
left a comment
There was a problem hiding this comment.
The historySize changes should be a separate commit and arguably a separate PR because it's unrelated.
This comment has been minimized.
This comment has been minimized.
60f32a5 to
77effd2
Compare
|
@bnoordhuis I removed the refactoring. |
77effd2 to
5f1947d
Compare
This comment has been minimized.
This comment has been minimized.
|
@nodejs/readline @nodejs/repl PTAL (this is the basis to add the same option to the |
|
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? |
|
@Trott neither. The reason is that it's possible to change the tab size in terminals. |
|
@nodejs/repl @nodejs/readline this could use some reviews. |
mcollina
left a comment
There was a problem hiding this comment.
I would prefer if this did not edit existings tests as well, it makes the review harder.
|
I updated the tests to be independent but I want to note that we just copy 95% of the test code all the time. |
d7eddc1 to
0b9ec1d
Compare
0b9ec1d to
27983d4
Compare
This adds the `tabSize` option to readline to allow different tab sizes.
27983d4 to
c7571e2
Compare
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>
|
Landed in f9a27ea |
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>
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
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
|
Depends on #31423 to land on v12.x |
This adds the
tabSizeoption to readline to allow different tabsizes. It also cleans up some code and unifies the linebreak RegExp.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes