Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-720

Tab completion does not include open parenthesis

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Autocomplete, UI / UX
    • None

      Problem Description

      Tab completion does not include an open parenthesis

      Steps to Reproduce

      • Start mongosh
      • Type db.agg, followed by TAB

      Expected Results

      Shell completes to db.aggregate(.

      Actual Results

      Shell completes to db.aggregate, as mongo shell does

      Additional Notes

      I think this is a usability issue because it's not immediately obvious what it means when you hit Enter key and it shows you:

      [Function: aggregate] AsyncFunction {
        returnType: 'AggregationCursor',
        returnsPromise: true,
        serverVersions: [ '0.0.0', '999.999.999' ],
        topologies: [ 0, 2, 1 ],
        deprecated: false,
        platforms: [ 0, 1, 2 ],
        help: [Function (anonymous)] Help
      }
      

      Including the open parenthesis is a clue that you also need a close parenthesis.

      Bonus points for including the close paren for commands that don't take any arguments.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: