Skip to content

How can I globally disable the REPL autocomplete preview function? #3286

Closed as not planned
@alwaysAn0n

Description

@alwaysAn0n
  • Node.js Version: v14.16.0
  • OS: Debian 10 Linux [ 4.19.0-9-amd64 Update README for help #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux ]
  • Scope (install, code, runtime, meta, other?): REPL settings
  • Module (and version) (if relevant): N/A

Since the introduction of the REPL preview function, nodejs native REPL based tools have become impossible to use. Every letter I type fills my terminal window with preview information I don't want to see. When my terminal isn't full screen, it's not uncommon for the unwanted preview information to wrap 3 or 4 lines, making it very difficult for me to see what I'm trying to type.

I understand that I can set the preview attribute to false in the REPL settings object but I often don't access to the REPL config object because it's being called by some other library. Most third party REPL tools use the default settings without providing a way to override them. I'm hoping there's an environment variable of some other way that I can disable REPL preview.

This new feature is so jarring that I've refrained from upgrading past Node v10. Any help would be greatly appreciated. Please note, I'm not asking how to make REPL preview less jarring. I'm asking how I can completely disable it so that regardless of who's REPL tool I'm using, I don't see the preview output.

Steps to reproduce:

  1. node -i on Node version 12 or higher
  2. type proc
  3. Observe the huge stringified object that I don't care about seeing
node -i

-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions