node/doc
Danny Nemer 5bda5faffd readline: add option to stop duplicates in history
Adds `options.deDupeHistory` for `readline.createInterface(options)`. If
`options.deDupeHistory` is `true`, when a new input line being added to
the history list duplicates an older one, removes the older line from
the list. Defaults to `false`.

Many users would appreciate this option, as it is a common setting in
shells. This option certainly should not be default behavior, as it
would be problematic in applications such as the `repl`, which inherits
from the readline `Interface`.

Extends documentation to reflect this API addition.

Adds tests for when `options.deDupeHistory` is truthy, and when
`options.deDupeHistory` is falsey.

PR-URL: https://github.com/nodejs/node/pull/2982
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2017-03-17 17:01:32 -04:00
..
api readline: add option to stop duplicates in history 2017-03-17 17:01:32 -04:00
api_assets doc: reduce font size on smaller screens 2017-03-09 10:59:24 +01:00
changelogs 2017-03-14, Version 7.7.3 (Current) 2017-03-14 18:39:08 -04:00
guides doc: update to current V8 versions 2017-03-14 09:08:31 +01:00
STYLE_GUIDE.md doc: fix typo in STYLE_GUIDE.md 2017-02-28 19:59:59 +02:00
full-white-stripe.jpg
node.1 Fix #7065: cli help documentation for --inspect 2017-03-17 10:27:01 -07:00
onboarding-extras.md doc: add not-an-aardvark as ESLint contact 2017-02-05 17:03:06 -08:00
onboarding.md doc: add personal pronouns option 2017-02-02 11:38:42 -08:00
osx_installer_logo.png
releases.md doc: add commit formats for release blog posts 2016-09-27 18:16:24 -04:00
template.html tools,doc: add Google Analytics tracking. 2017-01-25 21:54:34 +01:00
thin-white-stripe.jpg